-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) 路 1.1 KB
/
Copy pathcodeql.yml
File metadata and controls
46 lines (39 loc) 路 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: CodeQL
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Weekly full scan, Monday 03:00 UTC
- cron: '0 3 * * 1'
permissions:
contents: read
security-events: write
actions: read
jobs:
analyse:
name: Analyse (${{ matrix.language }})
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
# python: the package under src/ and the tests
# actions: the workflows themselves
language: [python, actions]
steps:
- name: Checkout
uses: actions/checkout@v7
# Neither language is compiled, so there is nothing to build before analysis.
- name: Initialise CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
build-mode: none
# security-and-quality catches both vulnerability patterns and bad practices
queries: security-and-quality
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v4
with:
category: /language:${{ matrix.language }}