Skip to content

Try to fix Snyk code scan #8

Try to fix Snyk code scan

Try to fix Snyk code scan #8

name: Scan with Snyk Code
on: push
jobs:

Check failure on line 3 in .github/workflows/Scan-with-Snyk-code.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/Scan-with-Snyk-code.yaml

Invalid workflow file

You have an error in your yaml syntax on line 3
permissions:
contents: read
security-events: write
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Run Snyk to check for SAST vulnerabilities
uses: snyk/actions/node@master
continue-on-error: true
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --all-projects --sarif-file-output=snyk.sarif
command: code test
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: snyk.sarif