Debian Codegraph @

.github/workflows/codeql-analysis.yml

raw symbols SCIP
1 name: "CodeQL"
2
3 on:
4 workflow_dispatch:
5 pull_request:
6 push:
7 branches: [master]
8 schedule:
9 - cron: '0 14 * * 2'
10
11 jobs:
12 analyze:
13 name: Analyze
14 runs-on: ubuntu-latest
15
16 strategy:
17 fail-fast: false
18 matrix:
19 language: ['python']
20
21 steps:
22 - name: Checkout repository
23 uses: actions/checkout@v2
24 with:
25 # We must fetch at least the immediate parents so that if this is
26 # a pull request then we can checkout the head.
27 fetch-depth: 2
28
29 # If this run was triggered by a pull request event, then checkout
30 # the head of the pull request instead of the merge commit.
31 - run: git checkout HEAD^2
32 if: ${{ github.event_name == 'pull_request' }}
33
34 # Initializes the CodeQL tools for scanning.
35 - name: Initialize CodeQL
36 uses: github/codeql-action/init@v1
37 with:
38 languages: ${{ matrix.language }}
39
40 # ℹ️ Command-line programs to run using the OS shell.
41 # 📚 https://git.io/JvXDl
42
43 - name: Perform CodeQL Analysis
44 uses: github/codeql-action/analyze@v1