From 13261f4f113faed20b0c345ff691615773059ed4 Mon Sep 17 00:00:00 2001 From: Pavel Tisnovsky Date: Fri, 17 Jun 2022 07:52:17 +0200 Subject: [PATCH] Fixed gosec --- gosec.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gosec.sh b/gosec.sh index e00f3c2f..829fa7c3 100755 --- a/gosec.sh +++ b/gosec.sh @@ -20,7 +20,7 @@ NC=$(tput sgr0) # No Color GO_SEC_ARGS="" -if [[ $* != *verbose* ]]; then +if [[ $* != *verbose* ]] && [[ -z "${VERBOSE}" ]]; then GO_SEC_ARGS="-quiet" fi @@ -31,7 +31,7 @@ echo -e "${BLUE}Security issues detection${NC}" if ! [ -x "$(command -v gosec)" ] then echo -e "${BLUE}Installing ${NC}" - curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b "$(go env GOPATH)/bin" + curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b "$(go env GOPATH)/bin" v2.8.1 # shellcheck disable=SC2181 if [ $? -eq 0 ] then