This commit is contained in:
Sergey Zhemoytel 2024-07-02 11:01:04 +00:00
parent 2ab51f541f
commit aa88fee355

View file

@ -33,7 +33,7 @@ trivy fs --scanners vuln --format cosign-vuln .
%endif
%build
export GOPROXY=direct
export GOPROXY=https://proxy.golang.org/cached-only
CGO_ENABLED=0 go build -ldflags "-X github.com/aquasecurity/kube-bench/cmd.KubeBenchVersion=%{version}" -o bin/%{name} .
upx bin/%{name}
@ -46,7 +46,7 @@ install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
%{_bindir}/%{name}
%check
export GOPROXY=direct
export GOPROXY=https://proxy.golang.org/cached-only
#go test ./...
%if %{secscan}