Repository navigation
ci(go): add a govulncheck vulnerability check job - #30
Merged
Merged
Conversation
go-ci.yml gains a "Vulnerability check" job that runs govulncheck with the caller's Go version, Node and pre-build command. Input govulncheck: fail (default), warn or off; govulncheck-version is pinned and bumped by Renovate like golangci-lint. Closes #29 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #29.
What
go-ci.ymlgains a Vulnerability check job that runs govulncheck on the caller's module. govulncheck reports only vulnerabilities in code the program actually calls, in its modules or the Go standard library.govulncheck:fail(default): a finding fails the job.warn: a finding gives a warning plus the full report in the job summary, and the job passes. For use while a fix is on its way.off: the job is skipped.govulncheck-version: pinned atv1.10.0, with a# renovate:comment and a matchingrenovate.jsonrule, so it's bumped by Renovate PRs likegolangci-lint-version.go-version,node-versionandpre-build-command.go run …@version), because govulncheck can't read a newer standard library than the Go it was built with.AGENTS.mddocuments the job, its inputs, how Go version affects standard-library findings, and how to fix a finding.Tested
actionlintpasses.The run step was simulated for every mode and exit code:
::error::::warning::Real CI: a throwaway draft PR on code-review-bot (test: govulncheck job from divmora/.github (do not merge) code-review-bot#58, now closed and its branch deleted) called
go-ci.yml@ci/govulncheck. Both jobs passed, and the log shows govulncheck v1.10.0 built with Go 1.27 reporting "No vulnerabilities found."Rollout
The job is on by default for every repository that calls
go-ci.yml. A trial run found a few repositories that will fail on day one. They need dependency bumps (handled separately), orgovulncheck: warnuntil those land.🤖 Generated with Claude Code