Minor tweak to CI

This commit is contained in:
Tony Bark 2025-05-01 08:59:53 -04:00
parent 55d89f835b
commit dfe83fcf00

View file

@ -1,4 +1,3 @@
# .github/workflows/monthly-vulnerability-scan.yml
name: Monthly Vulnerability Scan name: Monthly Vulnerability Scan
on: on:
@ -24,4 +23,11 @@ jobs:
run: dotnet restore run: dotnet restore
- name: List vulnerable packages - name: List vulnerable packages
run: dotnet list package --vulnerable run: |
set -e
results=$(dotnet list package --vulnerable)
echo "$results"
if echo "$results" | grep -q "has the following vulnerable packages"; then
echo "Vulnerabilities found!"
exit 1
fi