From 1aff578a13b161cc707ef59c275c94763ecd7c29 Mon Sep 17 00:00:00 2001 From: jake Date: Fri, 3 Apr 2026 15:28:01 -0400 Subject: [PATCH] bugfixes --- src/install.sh | 2 ++ src/security.sh | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/install.sh b/src/install.sh index 13ce6e5..b602b49 100755 --- a/src/install.sh +++ b/src/install.sh @@ -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 diff --git a/src/security.sh b/src/security.sh index 9451791..f92b74a 100755 --- a/src/security.sh +++ b/src/security.sh @@ -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