Skip to content

Commit

Permalink
Updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dianashevchenko committed Nov 29, 2022
1 parent 0ead559 commit a3e62e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/govulncheck.yml
Expand Up @@ -28,7 +28,9 @@ jobs:
govulncheck ./...
- name: Comment results
run: |
if [ "$(govulncheck ./ddtrace/... | grep "Vulnerability #" | wc -l)" -gt 0 ]; then
num=$(govulncheck ./ddtrace/... | grep "Vulnerability #" | wc -l)
if [ $num -gt 0 ]; then
echo "Found ${num} vulnerabilities"
exit 1
fi
Expand Down

0 comments on commit a3e62e8

Please sign in to comment.