mirror of
https://github.com/tonytins/s2pk.git
synced 2025-05-19 07:23:17 -04:00
Minor tweak to CI
This commit is contained in:
parent
55d89f835b
commit
dfe83fcf00
1 changed files with 8 additions and 2 deletions
10
.github/workflows/monthly-vulnerability-scan.yml
vendored
10
.github/workflows/monthly-vulnerability-scan.yml
vendored
|
@ -1,4 +1,3 @@
|
|||
# .github/workflows/monthly-vulnerability-scan.yml
|
||||
name: Monthly Vulnerability Scan
|
||||
|
||||
on:
|
||||
|
@ -24,4 +23,11 @@ jobs:
|
|||
run: dotnet restore
|
||||
|
||||
- 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
|
||||
|
|
Loading…
Add table
Reference in a new issue