Skip to content

Commit

Permalink
Adding snyk monitor test -> fails on critical sec vuln
Browse files Browse the repository at this point in the history
  • Loading branch information
BhruguR committed Jun 16, 2024
1 parent 5590277 commit f7961a7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,21 @@ jobs:
- run: npm ci
- run: npm run build
- run: npm test

security:
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/node@master
continue-on-error: false
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --severity-threshold=critical
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: snyk.sarif
command: monitor

0 comments on commit f7961a7

Please sign in to comment.