Skip to content

Commit c2d5bb2

Browse files
authored
Create codeql.yml
1 parent 0cde8e8 commit c2d5bb2

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: CodeQL
2+
on:
3+
push:
4+
branches: [ main, fix/cve ] # 你要扫描的分支
5+
pull_request:
6+
branches: [ main, fix/cve ]
7+
schedule:
8+
- cron: '30 2 * * *'
9+
10+
jobs:
11+
analyze:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
security-events: write
15+
contents: read
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: github/codeql-action/init@v3
19+
- uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)