Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local GoKart #603

Merged
merged 1 commit into from
Sep 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ LOG_FORMAT ?= simple
LOG_LEVEL ?= debug
CONTROLLER_GEN_VERSION ?= v0.4.1
GOLIC_VERSION ?= v0.5.0
GOKART_VERSION ?= v0.2.0
POD_NAMESPACE ?= k8gb
CLUSTER_GEO_TAG ?= eu
EXT_GSLB_CLUSTERS_GEO_TAGS ?= us
Expand Down Expand Up @@ -91,7 +92,7 @@ all: help

# check integrity
.PHONY: check
check: license lint test ## Check project integrity
check: license lint gokart test ## Check project integrity

.PHONY: clean-test-apps
clean-test-apps:
Expand Down Expand Up @@ -257,6 +258,12 @@ infoblox-secret:
--from-literal=EXTERNAL_DNS_INFOBLOX_WAPI_USERNAME=$${WAPI_USERNAME} \
--from-literal=EXTERNAL_DNS_INFOBLOX_WAPI_PASSWORD=$${WAPI_PASSWORD}

# GoKart - Go Security Static Analysis
# see: https://github.com/praetorian-inc/gokart
.PHONY: gokart
gokart:
$(call gokart,--globalsTainted --verbose)

# updates source code with license headers
.PHONY: license
license:
Expand Down Expand Up @@ -467,6 +474,11 @@ define controller-gen
$(GOBIN)/controller-gen $1
endef

define gokart
@go install github.com/praetorian-inc/gokart@$(GOKART_VERSION)
$(GOBIN)/gokart scan $1
endef

define golic
@go install github.com/AbsaOSS/golic@$(GOLIC_VERSION)
$(GOBIN)/golic inject $1
Expand Down