Skip to content

Commit

Permalink
feat: update codeql actions to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Sep 16, 2022
1 parent f3bb589 commit e43ee70
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 48 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
# This file is automatically added by @npmcli/template-oss. Do not edit.

name: "CodeQL"
name: CodeQL

on:
push:
branches:
- main
- latest
pull_request:
# The branches below must be a subset of the branches above
branches:
- main
- latest
Expand All @@ -24,21 +23,15 @@ jobs:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ javascript ]

steps:
- uses: actions/checkout@v3
- name: Setup git user
run: |
git config --global user.email "npm-cli+bot@github.com"
git config --global user.name "npm CLI robot"
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
languages: javascript
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
23 changes: 8 additions & 15 deletions lib/content/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "CodeQL"
name: CodeQL

on:
push:
Expand All @@ -7,7 +7,6 @@ on:
- {{.}}
{{/each}}
pull_request:
# The branches below must be a subset of the branches above
branches:
{{#each branches}}
- {{.}}
Expand All @@ -24,17 +23,11 @@ jobs:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [javascript]

steps:
{{> setupGit}}
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: $\{{ matrix.language }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
{{> setupGit}}
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: javascript
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
30 changes: 8 additions & 22 deletions tap-snapshots/test/apply/source-snapshots.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -291,15 +291,14 @@ jobs:
========================================
# This file is automatically added by @npmcli/template-oss. Do not edit.
name: "CodeQL"
name: CodeQL
on:
push:
branches:
- main
- latest
pull_request:
# The branches below must be a subset of the branches above
branches:
- main
- latest
Expand All @@ -315,24 +314,18 @@ jobs:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ javascript ]
steps:
- uses: actions/checkout@v3
- name: Setup git user
run: |
git config --global user.email "npm-cli+bot@github.com"
git config --global user.name "npm CLI robot"
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: \${{ matrix.language }}
languages: javascript
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
.github/workflows/post-dependabot.yml
========================================
Expand Down Expand Up @@ -1284,15 +1277,14 @@ jobs:
========================================
# This file is automatically added by @npmcli/template-oss. Do not edit.
name: "CodeQL"
name: CodeQL
on:
push:
branches:
- main
- latest
pull_request:
# The branches below must be a subset of the branches above
branches:
- main
- latest
Expand All @@ -1308,24 +1300,18 @@ jobs:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ javascript ]
steps:
- uses: actions/checkout@v3
- name: Setup git user
run: |
git config --global user.email "npm-cli+bot@github.com"
git config --global user.name "npm CLI robot"
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: \${{ matrix.language }}
languages: javascript
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
.github/workflows/post-dependabot.yml
========================================
Expand Down

0 comments on commit e43ee70

Please # to comment.