diff --git a/.github/workflows/snyk-node.yml b/.github/workflows/snyk-node.yml new file mode 100644 index 0000000..041dbc6 --- /dev/null +++ b/.github/workflows/snyk-node.yml @@ -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 \ No newline at end of file