Skip to content

Commit

Permalink
Show vulnerability check results
Browse files Browse the repository at this point in the history
  • Loading branch information
soumeh01 authored Nov 29, 2022
1 parent 887fdaa commit 5b081db
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@ jobs:
go-version: ${{ matrix.go }}
- name: Install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
- name: Detect vulnerability
- name: Run vulnerability check
run: |
test -n "$(govulncheck ./... | grep 'No vulnerabilities found.')"
echo "$(govulncheck ./... 2>&1 | tee vulnerability_report.out)"
test -n "$(grep 'No vulnerabilities found.' vulnerability_report.out)"
test:
strategy:
Expand Down

0 comments on commit 5b081db

Please sign in to comment.