Skip to content

Upload scanning results to Github Security panel #3

Upload scanning results to Github Security panel

Upload scanning results to Github Security panel #3

name: Scan with Snyk and Monitor
on: push
jobs:
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/node@master
continue-on-error: true # To make sure that SARIF upload gets called even if there are vulnerabilities
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --all-projects --severity-threshold=critical --sarif-file-output=snyk.sarif
command: monitor
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: snyk.sarif