Skip to content

Update dependency Microsoft.NET.Test.Sdk to 17.11.1 #440

Update dependency Microsoft.NET.Test.Sdk to 17.11.1

Update dependency Microsoft.NET.Test.Sdk to 17.11.1 #440

# This workflow will scan a .NET project
# For more information see: https://devblogs.microsoft.com/nuget/how-to-scan-nuget-packages-for-security-vulnerabilities/#dotnet-cli
name: CVE Scanning for .NET
on: [push, pull_request]
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Scan
run: dotnet list package --vulnerable --include-transitive | tee vulnerable.out
- name: Parse result
run: test `grep -cm 1 'has the following vulnerable packages' vulnerable.out` = 0