Skip to content

Commit c796073

Browse files
authored
chore: add CodeQL security scan workflow for automated analysis (#525)
* chore: add CodeQL security scan workflow for automated analysis * fix: improve readability of comments in CellDataReadDemoData and WebTest classes
1 parent 2fb6a4d commit c796073

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/codeql-scan.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:
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

0 commit comments

Comments
 (0)