Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
22bd20b
commit c31928c
Showing
2 changed files
with
25 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
govulncheck $CHECK_DIR >> ddtrace_results.txt | ||
if [ $(cat ddtrace_results.txt | grep "Vulnerability #" | wc -l) -gt 0 ]; then | ||
echo "Found ${num} vulnerabilities" | ||
echo $(cat ddtrace_results.txt | grep "Vulnerability #") | ||
exit 1 | ||
govulncheck ./ddtrace/... >> ./results.txt | ||
govulncheck ./appsec/... >> ./results.txt | ||
govulncheck ./internal/... >> ./results.txt | ||
govulncheck ./contrib/... >> ./results.txt | ||
govulncheck ./profiler/... >> ./results.txt | ||
|
||
results=$(cat ./results.txt | grep -Eo '\w+-\d+-\d+' | uniq) | ||
if [ $(echo $results | wc -l) -gt 0 ]; then | ||
echo "Found these vulnerabilities:" | ||
echo $results | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters