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 8cfad89
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 48 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/codeql-analysis.yml
@@ -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,16 @@ 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
24 changes: 9 additions & 15 deletions lib/content/codeql-analysis.yml
@@ -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,12 @@ 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
32 changes: 10 additions & 22 deletions tap-snapshots/test/apply/source-snapshots.js.test.cjs
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,19 @@ 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 +1278,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 +1301,19 @@ 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 8cfad89

Please sign in to comment.