Debian Codegraph @

.github/workflows/codeql.yml

raw
1 # GitHub's code quality scanning service
2 # https://codeql.github.com/
3 # https://docs.github.com/en/code-security/code-scanning/introduction-to-code-scanning/about-code-scanning-with-codeql
4 name: "CodeQL"
5
6 on:
7 push:
8 branches: [ "master" ]
9 pull_request:
10 # The branches below must be a subset of the branches above
11 branches: [ "master" ]
12
13 jobs:
14 analyze:
15 name: Analyze
16 runs-on: ubuntu-latest
17 permissions:
18 actions: read
19 contents: read
20 security-events: write
21
22 strategy:
23 fail-fast: false
24 matrix:
25 language: [ 'cpp' ]
26
27 steps:
28 - name: Checkout repository
29 uses: actions/checkout@v3
30
31 - name: Initialize CodeQL
32 uses: github/codeql-action/init@v3
33 with:
34 languages: ${{ matrix.language }}
35 # If you wish to specify custom queries, you can do so here or in a config file.
36 # By default, queries listed here will override any specified in a config file.
37 # Prefix the list here with "+" to use these queries and those in the config file.
38
39 # Details on CodeQL's query packs refer to:
40 # 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
41 # queries: security-extended,security-and-quality
42
43 - name: Install dependencies
44 run: |
45 sudo apt-get update -q
46 sudo apt-get install -q -y build-essential libpam-dev meson libcap-dev
47
48 - name: Autobuild
49 uses: github/codeql-action/autobuild@v3
50
51 - name: Perform CodeQL Analysis
52 uses: github/codeql-action/analyze@v3
53 with:
54 category: "/language:${{matrix.language}}"