diff --git a/Makefile b/Makefile index e53cef29..a4d8ac81 100644 --- a/Makefile +++ b/Makefile @@ -115,18 +115,12 @@ generate: $(CONTROLLER_GEN) $(GEN_CRD_API_REFERENCE_DOCS) $(HELM) $(MOCKGEN) $(Y format: $(GOIMPORTS) $(GOIMPORTSREVISER) @bash $(GARDENER_HACK_DIR)/format.sh ./cmd ./pkg ./test -# TODO(martinweindel): Remove once https://github.com/gardener/gardener/pull/10642 is available as release. -TOOLS_PKG_PATH := $(shell go list -tags tools -f '{{ .Dir }}' github.com/gardener/gardener/hack/tools 2>/dev/null) -.PHONY: adjust-install-gosec.sh -adjust-install-gosec.sh: - @chmod +xw $(TOOLS_PKG_PATH)/install-gosec.sh - .PHONY: sast -sast: adjust-install-gosec.sh $(GOSEC) +sast: $(GOSEC) @./hack/sast.sh .PHONY: sast-report -sast-report: adjust-install-gosec.sh $(GOSEC) +sast-report: $(GOSEC) @./hack/sast.sh --gosec-report true .PHONY: test