Debian Codegraph @

.github/workflows/codeql-analysis.yml

raw
1 name: "Code scanning - action"
2
3 on:
4 push:
5 branches: [main]
6 pull_request:
7 branches: [main]
8 schedule:
9 - cron: '0 17 * * 0'
10
11 concurrency:
12 group: scan-${{ github.event.pull_request.number || github.ref }}
13 cancel-in-progress: true
14
15 jobs:
16 CodeQL-Build:
17
18 runs-on: ubuntu-latest
19
20 steps:
21 - name: Checkout repository
22 uses: actions/checkout@v6
23 with:
24 # We must fetch at least the immediate parents so that if this is
25 # a pull request then we can checkout the head.
26 fetch-depth: 2
27
28 # If this run was triggered by a pull request event, then checkout
29 # the head of the pull request instead of the merge commit.
30 - run: git checkout HEAD^2
31 if: ${{ github.event_name == 'pull_request' }}
32
33 # Initializes the CodeQL tools for scanning.
34 - name: Initialize CodeQL
35 uses: github/codeql-action/init@v4
36 with:
37 languages: python
38
39 - name: Perform CodeQL Analysis
40 uses: github/codeql-action/analyze@v4