Skip to content

Commit 75357ec

Browse files
authored
Merge pull request #20172 from abdurrehman107/abdur-rehman/20250613-add-run-govulun-check-release-3.5
[release-3.5] Add makefile target for run-govuluncheck
2 parents 7d82f35 + d7eba7f commit 75357ec

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,13 @@ gofail-enable: install-gofail
582582
gofail-disable: install-gofail
583583
PASSES="toggle_failpoints" ./test.sh
584584

585+
.PHONY: run-govulncheck
586+
run-govulncheck:
587+
ifeq (, $(shell which govulncheck))
588+
$(shell go install golang.org/x/vuln/cmd/govulncheck@latest)
589+
endif
590+
PASSES="govuln" ./test.sh
591+
585592
# Static analysis
586593

587594
.PHONY: verify

test.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,10 @@ function markdown_marker_pass {
434434
fi
435435
}
436436

437+
function govuln_pass {
438+
run_for_modules run govulncheck -show verbose
439+
}
440+
437441
function govet_pass {
438442
run_for_modules generic_checker run go vet
439443
}

0 commit comments

Comments
 (0)