Skip to content

chore: add vuln-check Make target using govulncheck - #364

Open
mrofreP wants to merge 1 commit into
UndernetIRC:masterfrom
mrofreP:chore/add-govulncheck-target
Open

mrofreP wants to merge 1 commit into
UndernetIRC:masterfrom
mrofreP:chore/add-govulncheck-target

Conversation

@mrofreP

@mrofreP mrofreP commented Jul 18, 2026

Copy link
Copy Markdown

Add a make vuln-check target that runs golang.org/x/vuln's govulncheck
against the whole module (./...), reporting reachable CVEs in the
standard library and third-party dependencies. It complements
security-test (the app's own TestSecurity Go tests) by catching
upstream vulnerabilities the code actually reaches, and exits non-zero
when any reachable vulnerability is found.

Pin the tool to v1.6.0 (matching the GOLANGCI / GORELEASER / SQLC
convention) so installs are reproducible. govulncheck fetches the
vulnerability database live at run time, so pinning the binary does not
make the results stale. Document the target in CONTRIBUTING.md.

Add a `make vuln-check` target that runs golang.org/x/vuln's govulncheck
against the whole module (./...), reporting reachable CVEs in the
standard library and third-party dependencies. It complements
`security-test` (the app's own TestSecurity Go tests) by catching
upstream vulnerabilities the code actually reaches, and exits non-zero
when any reachable vulnerability is found.

Pin the tool to v1.6.0 (matching the GOLANGCI / GORELEASER / SQLC
convention) so installs are reproducible. govulncheck fetches the
vulnerability database live at run time, so pinning the binary does not
make the results stale. Document the target in CONTRIBUTING.md.
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant