File tree Expand file tree Collapse file tree 1 file changed +63
-0
lines changed
Expand file tree Collapse file tree 1 file changed +63
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CodeQL
2+
3+ on :
4+ push :
5+ branches : ["master"]
6+ pull_request :
7+ branches : ["master"]
8+ schedule :
9+ - cron : " 0 0 * * *"
10+ workflow_dispatch :
11+
12+ concurrency :
13+ group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
14+ cancel-in-progress : true
15+
16+ jobs :
17+ analyze :
18+ name : Analyze (${{ matrix.language }})
19+ runs-on : ubuntu-latest
20+ permissions :
21+ security-events : write
22+ actions : read
23+ contents : read
24+
25+ strategy :
26+ fail-fast : false
27+ matrix :
28+ include :
29+ - language : actions
30+ build-mode : none
31+ - language : javascript
32+ build-mode : none
33+
34+ steps :
35+ - name : Checkout repository
36+ uses : actions/checkout@v5
37+ with :
38+ persist-credentials : false
39+
40+ - name : Initialize CodeQL
41+ uses : github/codeql-action/init@v3
42+ with :
43+ languages : ${{ matrix.language }}
44+ build-mode : ${{ matrix.build-mode }}
45+
46+ - name : Setup environment (JavaScript)
47+ if : matrix.language == 'javascript'
48+ uses : actions/setup-node@v5
49+ with :
50+ node-version : 24.x
51+
52+ - name : Install dependencies (JavaScript)
53+ if : matrix.language == 'javascript'
54+ run : npm ci --ignore-scripts
55+
56+ - name : Build (JavaScript)
57+ if : matrix.language == 'javascript'
58+ run : npm run build
59+
60+ - name : Perform CodeQL Analysis
61+ uses : github/codeql-action/analyze@v3
62+ with :
63+ category : " /language:${{matrix.language}}"
You can’t perform that action at this time.
0 commit comments