Skip to content

Commit

Permalink
feat: Add govulncheck install and run
Browse files Browse the repository at this point in the history
  • Loading branch information
sbp-bvanb committed Nov 14, 2024
1 parent d8518ae commit cf18178
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit cf18178

Please sign in to comment.