Skip to content

Commit 6f7b97c

Browse files
authored
Merge pull request #3 from blavity/fix/codeql-action-version
fix(workflows): update codeql action version
2 parents 743e8a8 + 79f0084 commit 6f7b97c

File tree

1 file changed

+36
-7
lines changed

1 file changed

+36
-7
lines changed

.github/workflows/codeql.yml

Lines changed: 36 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,42 @@
11
name: "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

510
jobs:
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.

0 commit comments

Comments
 (0)