Skip to content

Commit

Permalink
feat: add snyk workflow
Browse files Browse the repository at this point in the history
chore: add snyk workflow
  • Loading branch information
stefanfreitagrwe authored and stefanfreitag committed Dec 8, 2023
1 parent d0fdf89 commit f8f7622
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/snyk-node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Snyk Security Scan
on:
push:
branches:
- main

jobs:
security:
permissions:
contents: read
security-events: write
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
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
command: "test --sarif-file-output=snyk.sarif --report"
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: snyk.sarif

0 comments on commit f8f7622

Please sign in to comment.