restructuring logic and adding more inputs #2
@@ -8,6 +8,8 @@ if [[ -z "$version" ]]; then
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
echo "[DEBUG] $version found in install.sh";
|
||||
|
||||
go install golang.org/x/vuln/cmd/govulncheck@latest
|
||||
go install github.com/securego/gosec/v2/cmd/gosec@latest
|
||||
|
||||
|
||||
@@ -8,7 +8,11 @@ if [[ "$STATIC_FLAG" == "no" && "$VULN_CHECK" == "no" ]]; then
|
||||
fi
|
||||
|
||||
toolchain=$(go mod edit go.mod -json | jq ".Toolchain");
|
||||
version=$(go mod edit -json | jq ".Toolchain");
|
||||
echo "[DEBUG] $toolchain found in go.mod";
|
||||
|
||||
version=$(go env -json | jq ".GOVERSION");
|
||||
echo "[DEBUG] $version found in go env";
|
||||
|
||||
if [[ ! -z "$toolchain" ]]; then
|
||||
version=$toolchain;
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user