From 48d28faf09c5a705e405b598c7ccf1d0c1698d52 Mon Sep 17 00:00:00 2001 From: Diana Shevchenko Date: Thu, 1 Dec 2022 14:51:28 +0100 Subject: [PATCH] Updated workflow --- .github/workflows/govulncheck.sh | 9 ++++----- .github/workflows/govulncheck.yml | 5 +++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/govulncheck.sh b/.github/workflows/govulncheck.sh index 614125e7aa..617d17c9c2 100644 --- a/.github/workflows/govulncheck.sh +++ b/.github/workflows/govulncheck.sh @@ -2,9 +2,9 @@ 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 @@ -12,5 +12,4 @@ path=./appsec/... check_results path=./internal/... check_results path=./contrib/... check_results path=./profiler/... check_results - - +exit $found \ No newline at end of file diff --git a/.github/workflows/govulncheck.yml b/.github/workflows/govulncheck.yml index eb95704282..085df909d7 100644 --- a/.github/workflows/govulncheck.yml +++ b/.github/workflows/govulncheck.yml @@ -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 } @@ -39,5 +39,6 @@ jobs: path=./internal/... check_results path=./contrib/... check_results path=./profiler/... check_results + exit $found