Debian Codegraph @

.github/workflows/codeql.yml

raw symbols SCIP
1 # For most projects, this workflow file will not need changing; you simply need
2 # to commit it to your repository.
3 #
4 # You may wish to alter this file to override the set of languages analyzed,
5 # or to provide custom queries or build logic.
6 #
7 # ******** NOTE ********
8 # We have attempted to detect the languages in your repository. Please check
9 # the `language` matrix defined below to confirm you have the correct set of
10 # supported CodeQL languages.
11 #
12 name: "CodeQL"
13 on:
14 push:
15 pull_request:
16 schedule:
17 - cron: '0 0 * * *'
18
19 permissions:
20 contents: read
21
22 jobs:
23 analyze:
24 name: Analyze
25 runs-on: ubuntu-22.04
26 permissions:
27 actions: read
28 contents: read
29 security-events: write
30
31 strategy:
32 fail-fast: false
33 matrix:
34 language: ["cpp"]
35 # CodeQL supports [ $supported-codeql-languages ]
36 # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
37
38 concurrency:
39 group: ${{ github.workflow }}-${{ github.ref }}
40 cancel-in-progress: true
41
42 steps:
43 - name: Harden Runner
44 uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
45 with:
46 egress-policy: audit
47
48 - name: Checkout repository
49 uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
50
51 # Initializes the CodeQL tools for scanning.
52 - name: Initialize CodeQL
53 uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
54 with:
55 languages: ${{ matrix.language }}
56 # If you wish to specify custom queries, you can do so here or in a config file.
57 # By default, queries listed here will override any specified in a config file.
58 # Prefix the list here with "+" to use these queries and those in the config file.
59
60 - name: Setup mold
61 uses: rui314/setup-mold@9c9c13bf4c3f1adef0cc596abc155580bcb04444
62
63 - name: Build
64 run: cmake -B build -DDPP_NO_VCPKG=ON -DAVX_TYPE=AVX0 -DCMAKE_BUILD_TYPE=Release && cmake --build build -j4
65
66 - name: Perform CodeQL Analysis
67 uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
68 with:
69 category: "/language:${{matrix.language}}"