Skip to content

Commit 009f008

Browse files
committed
Add CodeQL security scanning workflow
1 parent d61c237 commit 009f008

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CodeQL Security Scan
2+
3+
on:
4+
push:
5+
branches: ["master", "bitmath2"]
6+
pull_request:
7+
branches: ["master"]
8+
schedule:
9+
- cron: "0 0 * * 0"
10+
11+
jobs:
12+
analyze:
13+
name: Analyze Python
14+
runs-on: ubuntu-latest
15+
permissions:
16+
actions: read
17+
contents: read
18+
security-events: write
19+
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
24+
- name: Initialize CodeQL
25+
uses: github/codeql-action/init@v3
26+
with:
27+
languages: python
28+
29+
- name: Autobuild
30+
uses: github/codeql-action/autobuild@v3
31+
32+
- name: Perform CodeQL Analysis
33+
uses: github/codeql-action/analyze@v3
34+
with:
35+
category: "/language:python"

0 commit comments

Comments
 (0)