Skip to content

Added snyk workflow. #1

Added snyk workflow.

Added snyk workflow. #1

Workflow file for this run

name: Snyk vulenrability scan
on: [push]
jobs:
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup .NET
uses: actions/[email protected]
- name: Restore dependencies
run: dotnet restore ./path/to/your.sln
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/dotnet@master
continue-on-error: true # To make sure that SARIF upload gets called
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --sarif-file-output=snyk.sarif

Check failure on line 19 in .github/workflows/snyk.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/snyk.yml

Invalid workflow file

You have an error in your yaml syntax on line 19
--severity-threshold=high
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: snyk.sarif