Skip to content

feature: add snyk.io #2

feature: add snyk.io

feature: add snyk.io #2

Workflow file for this run

name: Check for severe vulnerabilities using Snyk
on:
pull_request:
push:
branches: [develop]
jobs:
dotnet:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup .NET
uses: actions/setup-dotnet@v4
- name: Restore dependencies
run: dotnet restore ./CSETWebApi/CSETWeb_Api/CSETWeb_Api.sln
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/dotnet@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
# with:
# args: --severity-threshold=high
node:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/node@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
# with:
# args: --severity-threshold=high