Debian Codegraph @

.github/workflows/codeql.yml

raw symbols SCIP
1 name: "CodeQL"
2
3 on:
4 push:
5 branches: [ 'maint-1.3', 'maint-1.2', 'main' ]
6 pull_request:
7 # The branches below must be a subset of the branches above
8 branches: [ 'maint-1.3', 'main' ]
9 schedule:
10 - cron: '32 17 * * 0'
11
12 concurrency:
13 group: ${{ github.workflow }}-${{ github.event.number || github.run_id }}
14 cancel-in-progress: true
15
16 jobs:
17 analyze:
18 name: Analyze
19 runs-on: ubuntu-latest
20 permissions:
21 actions: read
22 contents: read
23 security-events: write
24
25 strategy:
26 fail-fast: false
27 matrix:
28 language: [ 'cpp', 'python' ]
29 # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
30 # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
31
32 steps:
33 - name: Checkout repository
34 uses: actions/checkout@v6
35
36 - name: Install Deps
37 run: |
38 sudo apt-get update
39 sudo apt-get -y install lcov swig xsltproc rpm-common lua5.3 libyaml-dev libdbus-1-dev libdbus-glib-1-dev libcurl4-openssl-dev libgcrypt-dev libselinux1-dev libglib2.0-dev libacl1-dev libblkid-dev libcap-dev libxml2-dev libxslt1-dev libxml-parser-perl libxml-xpath-perl libperl-dev librpm-dev librtmp-dev libxmlsec1-dev libxmlsec1-openssl python3-dbusmock
40 sudo apt-get -y remove rpm
41
42 # Initializes the CodeQL tools for scanning.
43 - name: Initialize CodeQL
44 uses: github/codeql-action/init@v3
45 with:
46 languages: ${{ matrix.language }}
47 # If you wish to specify custom queries, you can do so here or in a config file.
48 # By default, queries listed here will override any specified in a config file.
49 # Prefix the list here with "+" to use these queries and those in the config file.
50
51 # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
52 queries: +security-and-quality
53
54 - name: Build
55 working-directory: ./build
56 run: |
57 cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ../
58 make all
59
60 - name: Perform CodeQL Analysis
61 uses: github/codeql-action/analyze@v3
62 with:
63 category: "/language:${{matrix.language}}"