Skip to content

Commit

Permalink
Updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dianashevchenko committed Dec 1, 2022
1 parent 5f288ba commit 48d28fa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/govulncheck.sh
Expand Up @@ -2,15 +2,14 @@ found=0
function check_results {
results=$(govulncheck $path | grep -Eo '\w+-\d+-\d+' | uniq)
if [ $(echo $results | wc -l) -gt 0 ]; then
echo "Found these vulnerabilities in $path:"
echo $results
found=$(($found || 1))
echo "Found these vulnerabilities in $path:"
echo $results
found=$(($found || 1))
fi
}
path=./ddtrace/... check_results
path=./appsec/... check_results
path=./internal/... check_results
path=./contrib/... check_results
path=./profiler/... check_results


exit $found
5 changes: 3 additions & 2 deletions .github/workflows/govulncheck.yml
Expand Up @@ -29,8 +29,8 @@ jobs:
function check_results {
results=$(govulncheck $path | grep -Eo '\w+-\d+-\d+' | uniq)
if [ $(echo $results | wc -l) -gt 0 ]; then
echo "Found these vulnerabilities in $path:"
echo $results
echo "Found these vulnerabilities in $path: $results"
# echo $results
found=$(($found || 1))
fi
}
Expand All @@ -39,5 +39,6 @@ jobs:
path=./internal/... check_results
path=./contrib/... check_results
path=./profiler/... check_results
exit $found


0 comments on commit 48d28fa

Please sign in to comment.