From cf18178693e97e6c35957532a8eb8f4929f2c5e7 Mon Sep 17 00:00:00 2001 From: sbp-bvanb Date: Thu, 14 Nov 2024 11:32:35 +0100 Subject: [PATCH] feat: Add govulncheck install and run --- Taskfile.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Taskfile.yml b/Taskfile.yml index 064d018..79c086e 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -16,6 +16,7 @@ vars: else nproc fi + GOVULNCHECK_VERSION: v1.1.3 GQLGENC_VERSION: v0.25.4 HELM_VERSION: v3.16.2 MOCKERY_BIN: "{{.GOPATH}}/bin/mockery" @@ -143,6 +144,19 @@ tasks: - task: golangci-lint-install - golangci-lint cache clean - task: golangci-lint-run + govulncheck-install: + silent: true + cmds: + - | + if ! govulncheck --version | grep -q {{.GOVULNCHECK_VERSION}}; then + go install golang.org/x/vuln/cmd/govulncheck@{{.GOVULNCHECK_VERSION}} + fi + govulncheck: + silent: true + cmds: + - task: govulncheck-install + - | + govulncheck -tags e2e,component,integration ./... gqlgenc-install: silent: true cmds: