Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
ci(scorecards): set to only run on default branch
Browse files Browse the repository at this point in the history
  • Loading branch information
rhahao committed Feb 5, 2022
1 parent 694b733 commit 26618df
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:

scorecards:
name: Scorecards Analysis
if: ${{ github.ref == 'refs/heads/main' }}
needs: [codeql]
runs-on: ubuntu-latest
permissions:
Expand All @@ -61,27 +62,3 @@ jobs:
uses: github/codeql-action/upload-sarif@1a927e9307bc11970b2c679922ebc4d03a5bd980
with:
sarif_file: results.sarif

nodejsscan:
name: NodeJS Scan
needs: [scorecards]
runs-on: ubuntu-latest
permissions:
security-events: write
actions: read
contents: read

steps:
- name: Checkout the code
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579

- name: nodejsscan scan
id: njsscan
uses: ajinabraham/njsscan-action@7237412fdd36af517e2745077cedbf9d6900d711
with:
args: '. --sarif --output results.sarif || true'

- name: Upload njsscan report
uses: github/codeql-action/upload-sarif@1a927e9307bc11970b2c679922ebc4d03a5bd980
with:
sarif_file: results.sarif

0 comments on commit 26618df

Please sign in to comment.