Skip to content

Update snyk.yml again. #7

Update snyk.yml again.

Update snyk.yml again. #7

Workflow file for this run

name: Snyk vulenrability scan
on: [push]
jobs:
security:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: [6.x, 7.x, 8.x]
steps:
- uses: actions/checkout@master
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Restore dependencies
run: dotnet restore Infobip.Api.Client.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: Infobip.Api.Client.sln --sarif-file-output=snyk.sarif --severity-threshold=high
- name: List files for debugging
run: ls -R # Lists all files in all directories
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: snyk.sarif