diff --git a/Makefile b/Makefile index 859beb6..1833d61 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ KO_LOCAL_REGISTRY := ko.local/kube-bench-adapter KO_REGISTRY ?= github.com/nirmata/kube-bench-adapter PLATFORMS ?= linux/arm64,linux/amd64,linux/s390x,linux/ppc64le LOCAL_PLATFORM ?= linux/arm64 -IMAGE_TAG ?= $(shell git describe) +IMAGE_TAG ?= $(shell git describe --always --tags) all: build-local diff --git a/pkg/kubebench/kubebench.go b/pkg/kubebench/kubebench.go index b7d0205..d3fbd02 100644 --- a/pkg/kubebench/kubebench.go +++ b/pkg/kubebench/kubebench.go @@ -66,8 +66,8 @@ func RunJob(params *params.KubeBenchArgs) (*kubebench.OverallControls, error) { requiredParam := make([]string, 2) if params.Registry != "aquasec" && params.RegistryUsername == "" { requiredParam = append(requiredParam, "registry-username") - } - + } + if params.Registry != "aquasec" && params.RegistryPassword == "" { requiredParam = append(requiredParam, "registry-password") }