Skip to content

Commit fb49e3a

Browse files
fix gosec
1 parent fcd43e5 commit fb49e3a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Makefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ SHELL := /usr/bin/env bash -o pipefail ## Set the shell to use for finding Go fi
1111
build: config ## Compile program (CGO disabled)
1212
CGO_ENABLED=0 $(GO_BIN) build $(GO_ARGS) ./cmd/fastly
1313

14-
GO_BIN ?= go ## Allows overriding go executable.
15-
TEST_COMMAND ?= $(GO_BIN) test ## Enables support for tools such as https://github.com/rakyll/gotest
16-
TEST_ARGS ?= -v -timeout 15m ./... ## The compute tests can sometimes exceed the default 10m limit
14+
## Allows overriding go executable.
15+
GO_BIN ?= go
16+
## Enables support for tools such as https://github.com/rakyll/gotest
17+
TEST_COMMAND ?= $(GO_BIN) test
18+
## The compute tests can sometimes exceed the default 10m limit
19+
TEST_ARGS ?= -v -timeout 15m ./...
1720

1821
ifeq ($(OS), Windows_NT)
1922
SHELL = cmd.exe
@@ -82,7 +85,7 @@ revive: ## Run linter (using revive)
8285
# Run security vulnerability checker.
8386
.PHONY: gosec
8487
gosec: ## Run security vulnerability checker
85-
gosec -quiet -exclude=G104 ./{cmd,pkg}/...
88+
$(GO_BIN) tool gosec -quiet -exclude=G104 ./{cmd,pkg}/...
8689

8790
nilaway: ## Run nilaway
8891
@nilaway ./...

0 commit comments

Comments
 (0)