Skip to content

Commit 555481e

Browse files
committed
ci: Pin govulncheck to v1.1.4
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
1 parent e2a56bc commit 555481e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ $(LOCALBIN):
5252

5353
## Tool Binaries
5454
GOLANGCI_LINT = $(LOCALBIN)/golangci-lint-$(GOLANGCI_LINT_VERSION)
55-
GOVULNCHECK ?= $(LOCALBIN)/govulncheck
55+
GOVULNCHECK = $(LOCALBIN)/govulncheck-$(GOVULNCHECK_VERSION)
5656

5757
# Pinned version of golangci-lint; bump here to upgrade the linter across CI and local runs.
5858
GOLANGCI_LINT_VERSION ?= v2.11.4
@@ -61,10 +61,12 @@ golangci-lint: $(GOLANGCI_LINT) ## Download golangci-lint locally if necessary.
6161
$(GOLANGCI_LINT): $(LOCALBIN)
6262
$(call go-install-tool,$(GOLANGCI_LINT),github.com/golangci/golangci-lint/v2/cmd/golangci-lint,$(GOLANGCI_LINT_VERSION))
6363

64+
# Pinned version of govulncheck; bump here to upgrade the scanner across CI and local runs.
65+
GOVULNCHECK_VERSION ?= v1.1.4
6466
.PHONY: govulncheck
6567
govulncheck: $(GOVULNCHECK) ## Install govulncheck locally if necessary.
6668
$(GOVULNCHECK): $(LOCALBIN)
67-
$(call go-install-tool,$(GOVULNCHECK),golang.org/x/vuln/cmd/govulncheck,latest)
69+
$(call go-install-tool,$(GOVULNCHECK),golang.org/x/vuln/cmd/govulncheck,$(GOVULNCHECK_VERSION))
6870

6971
# go-install-tool will 'go install' any package with custom target and name of binary, if it doesn't exist
7072
# $1 - target path with name of binary (ideally with version)

0 commit comments

Comments
 (0)