Debian Codegraph @

.github/workflows/codeql-analysis.yml

raw
1 name: "Code scanning - action"
2
3 on:
4 push:
5 branches-ignore:
6 - "dependabot/**"
7 pull_request:
8 schedule:
9 - cron: "0 13 * * 4"
10
11 permissions:
12 contents: read
13 security-events: write
14
15 jobs:
16 CodeQL-Build:
17 runs-on: ubuntu-latest
18
19 steps:
20 - name: Checkout repository
21 uses: actions/checkout@v6
22 with:
23 # We must fetch at least the immediate parents so that if this is
24 # a pull request then we can checkout the head.
25 fetch-depth: 2
26
27 # If this run was triggered by a pull request event, then checkout
28 # the head of the pull request instead of the merge commit.
29 - run: git checkout HEAD^2
30 if: ${{ github.event_name == 'pull_request' }}
31
32 # Initializes the CodeQL tools for scanning.
33 - name: Initialize CodeQL
34 uses: github/codeql-action/init@v4
35 # Override language selection by uncommenting this and choosing your languages
36 # with:
37 # languages: go, javascript, csharp, python, cpp, java
38
39 # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
40 # If this step fails, then you should remove it and run the build manually (see below)
41 - name: Autobuild
42 uses: github/codeql-action/autobuild@v4
43
44 # â„šī¸ Command-line programs to run using the OS shell.
45 # 📚 https://git.io/JvXDl
46
47 # âœī¸ If the Autobuild fails above, remove it and uncomment the following three lines
48 # and modify them (or add more) to build your code if your project
49 # uses a compiled language
50
51 #- run: |
52 # make bootstrap
53 # make release
54
55 - name: Perform CodeQL Analysis
56 uses: github/codeql-action/analyze@v4