Debian Codegraph @

.github/workflows/codeql.yml

raw symbols SCIP
1 name: "CodeQL"
2
3 on:
4 push:
5 branches: [ "master" ]
6 pull_request:
7 branches: [ "master" ]
8 schedule:
9 - cron: "40 23 * * 4"
10
11 jobs:
12 analyze:
13 name: Analyze
14 runs-on: ubuntu-latest
15 permissions:
16 actions: read
17 contents: read
18 security-events: write
19
20 strategy:
21 fail-fast: false
22 matrix:
23 language: [ python ]
24
25 steps:
26 - name: Checkout
27 uses: actions/checkout@v3
28
29 - name: After Prepare
30 run: python3 -m pip install --upgrade --user flake8
31
32 - name: Before Index
33 run: |
34 python3 -m flake8 --version
35 python3 -m flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
36 python3 -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
37
38 - name: Initialize CodeQL
39 uses: github/codeql-action/init@v2
40 with:
41 languages: ${{ matrix.language }}
42 queries: +security-and-quality
43
44 - name: Autobuild
45 uses: github/codeql-action/autobuild@v2
46
47 - name: Perform CodeQL Analysis
48 uses: github/codeql-action/analyze@v2
49 with:
50 category: "/language:${{ matrix.language }}"