Skip to content

Commit f7aaeda

Browse files
committed
ci(codeql): update actions to v4/v6 and add Node.js setup for better analysis
1 parent 659fcd6 commit f7aaeda

1 file changed

Lines changed: 19 additions & 3 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,31 @@ jobs:
2424

2525
steps:
2626
- name: Checkout repository
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@v6
28+
29+
- name: Setup Node.js
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version: '22'
33+
34+
- name: Cache node_modules
35+
uses: actions/cache@v4
36+
with:
37+
path: node_modules
38+
key: ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }}
39+
restore-keys: |
40+
${{ runner.os }}-node-modules-
41+
42+
- name: Install dependencies
43+
run: npm ci
2844

2945
- name: Initialize CodeQL
30-
uses: github/codeql-action/init@v3
46+
uses: github/codeql-action/init@v4
3147
with:
3248
languages: ${{ matrix.language }}
3349
config-file: ./.github/codeql/codeql-config.yml
3450

3551
- name: Perform CodeQL Analysis
36-
uses: github/codeql-action/analyze@v3
52+
uses: github/codeql-action/analyze@v4
3753
with:
3854
category: "/language:${{ matrix.language }}"

0 commit comments

Comments
 (0)