File tree Expand file tree Collapse file tree 1 file changed +36
-7
lines changed
Expand file tree Collapse file tree 1 file changed +36
-7
lines changed Original file line number Diff line number Diff line change 11name : " CodeQL analysis"
22
3- on : [pull_request]
3+ on :
4+ pull_request :
5+ push :
6+ branches : [main]
7+ schedule :
8+ - cron : ' 30 1 * * 0' # Weekly scan
49
510jobs :
6- build :
11+ codeql-analyze :
12+ name : Analyze (${{ matrix.language }})
713 runs-on : ubuntu-latest
14+ permissions :
15+ actions : read
16+ contents : read
17+ security-events : write # Needed for uploading SARIF
18+ strategy :
19+ fail-fast : false
20+ matrix :
21+ language : ['python']
22+ build-mode : ['none'] # Use manual here if needed
23+
824 steps :
9- - uses : actions/checkout@v2
10- - uses : github/codeql-action/init@v1
11- with :
12- languages : python
13- - uses : github/codeql-action/analyze@v1
25+ - name : Checkout repository
26+ uses : actions/checkout@v4
27+
28+ - name : Initialize CodeQL
29+ uses : github/codeql-action/init@v4.31.3
30+ with :
31+ languages : ${{ matrix.language }}
32+ build-mode : ${{ matrix.build-mode }}
33+ # config-file: .github/codeql-config.yaml # If using custom queries
34+
35+ # If you need a manual build, add your build steps here
36+
37+ - name : Perform CodeQL Analysis
38+ uses : github/codeql-action/analyze@v4.31.3
39+ with :
40+ category : " /language:${{ matrix.language }}"
41+
42+ # SARIF reports are uploaded automatically by the 'analyze' step.
You can’t perform that action at this time.
0 commit comments