Skip to content

Commit e43ee70

Browse files
committed
feat: update codeql actions to v2
1 parent f3bb589 commit e43ee70

File tree

3 files changed

+20
-48
lines changed

3 files changed

+20
-48
lines changed

.github/workflows/codeql-analysis.yml

+4-11
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
# This file is automatically added by @npmcli/template-oss. Do not edit.
22

3-
name: "CodeQL"
3+
name: CodeQL
44

55
on:
66
push:
77
branches:
88
- main
99
- latest
1010
pull_request:
11-
# The branches below must be a subset of the branches above
1211
branches:
1312
- main
1413
- latest
@@ -24,21 +23,15 @@ jobs:
2423
actions: read
2524
contents: read
2625
security-events: write
27-
28-
strategy:
29-
fail-fast: false
30-
matrix:
31-
language: [ javascript ]
32-
3326
steps:
3427
- uses: actions/checkout@v3
3528
- name: Setup git user
3629
run: |
3730
git config --global user.email "[email protected]"
3831
git config --global user.name "npm CLI robot"
3932
- name: Initialize CodeQL
40-
uses: github/codeql-action/init@v1
33+
uses: github/codeql-action/init@v2
4134
with:
42-
languages: ${{ matrix.language }}
35+
languages: javascript
4336
- name: Perform CodeQL Analysis
44-
uses: github/codeql-action/analyze@v1
37+
uses: github/codeql-action/analyze@v2

lib/content/codeql-analysis.yml

+8-15
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "CodeQL"
1+
name: CodeQL
22

33
on:
44
push:
@@ -7,7 +7,6 @@ on:
77
- {{.}}
88
{{/each}}
99
pull_request:
10-
# The branches below must be a subset of the branches above
1110
branches:
1211
{{#each branches}}
1312
- {{.}}
@@ -24,17 +23,11 @@ jobs:
2423
actions: read
2524
contents: read
2625
security-events: write
27-
28-
strategy:
29-
fail-fast: false
30-
matrix:
31-
language: [javascript]
32-
3326
steps:
34-
{{> setupGit}}
35-
- name: Initialize CodeQL
36-
uses: github/codeql-action/init@v1
37-
with:
38-
languages: $\{{ matrix.language }}
39-
- name: Perform CodeQL Analysis
40-
uses: github/codeql-action/analyze@v1
27+
{{> setupGit}}
28+
- name: Initialize CodeQL
29+
uses: github/codeql-action/init@v2
30+
with:
31+
languages: javascript
32+
- name: Perform CodeQL Analysis
33+
uses: github/codeql-action/analyze@v2

tap-snapshots/test/apply/source-snapshots.js.test.cjs

+8-22
Original file line numberDiff line numberDiff line change
@@ -291,15 +291,14 @@ jobs:
291291
========================================
292292
# This file is automatically added by @npmcli/template-oss. Do not edit.
293293
294-
name: "CodeQL"
294+
name: CodeQL
295295
296296
on:
297297
push:
298298
branches:
299299
- main
300300
- latest
301301
pull_request:
302-
# The branches below must be a subset of the branches above
303302
branches:
304303
- main
305304
- latest
@@ -315,24 +314,18 @@ jobs:
315314
actions: read
316315
contents: read
317316
security-events: write
318-
319-
strategy:
320-
fail-fast: false
321-
matrix:
322-
language: [ javascript ]
323-
324317
steps:
325318
- uses: actions/checkout@v3
326319
- name: Setup git user
327320
run: |
328321
git config --global user.email "[email protected]"
329322
git config --global user.name "npm CLI robot"
330323
- name: Initialize CodeQL
331-
uses: github/codeql-action/init@v1
324+
uses: github/codeql-action/init@v2
332325
with:
333-
languages: \${{ matrix.language }}
326+
languages: javascript
334327
- name: Perform CodeQL Analysis
335-
uses: github/codeql-action/analyze@v1
328+
uses: github/codeql-action/analyze@v2
336329
337330
.github/workflows/post-dependabot.yml
338331
========================================
@@ -1284,15 +1277,14 @@ jobs:
12841277
========================================
12851278
# This file is automatically added by @npmcli/template-oss. Do not edit.
12861279
1287-
name: "CodeQL"
1280+
name: CodeQL
12881281
12891282
on:
12901283
push:
12911284
branches:
12921285
- main
12931286
- latest
12941287
pull_request:
1295-
# The branches below must be a subset of the branches above
12961288
branches:
12971289
- main
12981290
- latest
@@ -1308,24 +1300,18 @@ jobs:
13081300
actions: read
13091301
contents: read
13101302
security-events: write
1311-
1312-
strategy:
1313-
fail-fast: false
1314-
matrix:
1315-
language: [ javascript ]
1316-
13171303
steps:
13181304
- uses: actions/checkout@v3
13191305
- name: Setup git user
13201306
run: |
13211307
git config --global user.email "[email protected]"
13221308
git config --global user.name "npm CLI robot"
13231309
- name: Initialize CodeQL
1324-
uses: github/codeql-action/init@v1
1310+
uses: github/codeql-action/init@v2
13251311
with:
1326-
languages: \${{ matrix.language }}
1312+
languages: javascript
13271313
- name: Perform CodeQL Analysis
1328-
uses: github/codeql-action/analyze@v1
1314+
uses: github/codeql-action/analyze@v2
13291315
13301316
.github/workflows/post-dependabot.yml
13311317
========================================

0 commit comments

Comments
 (0)