File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CodeQL Security Scan
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ - main
8+ pull_request :
9+ types : [opened, synchronize, reopened]
10+ schedule :
11+ - cron : ' 0 0 * * *' # 每天0点自动扫描
12+
13+ jobs :
14+ codeql :
15+ name : CodeQL Analysis
16+ runs-on : ubuntu-latest
17+ permissions :
18+ actions : read
19+ contents : read
20+ security-events : write
21+ strategy :
22+ fail-fast : false
23+ matrix :
24+ language : [ 'java' ]
25+ steps :
26+ - name : Checkout repository
27+ uses : actions/checkout@v4
28+ - name : Initialize CodeQL
29+ uses : github/codeql-action/init@v3
30+ with :
31+ languages : ${{ matrix.language }}
32+ - name : Build with Maven
33+ run : mvn clean install -DskipTests
34+ - name : Perform CodeQL Analysis
35+ uses : github/codeql-action/analyze@v3
You can’t perform that action at this time.
0 commit comments