ci: don't filter output of govulncheck (#3148)

This commit is contained in:
Markus Rudy 2024-06-05 16:45:27 +02:00 committed by GitHub
parent 2fbbf02516
commit 9a01551f75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,16 +27,11 @@ PATH=$(dirname "${go}"):${PATH}
check() {
err=0
echo "Scanning Go vulnerability DB for knwon vulnerabilities in modules:"
echo "Scanning Go vulnerability DB for known vulnerabilities in modules:"
for mod in ${submodules}; do
echo " ${mod}"
echo -n " "
CGO_ENABLED=0 ${govulncheck} -C "${mod}" "./..." |
tail -n 2 | # Providing some nice output...
tr '\n' ' ' |
sed s/" your code and"// &&
printf "\n" ||
err=$?
CGO_ENABLED=0 ${govulncheck} -C "${mod}" "./..." || err=$?
done
exit "${err}"