Repository navigation
ci: gate govulncheck on a written allowlist - #872
Merged
Merged
Conversation
govulncheck-action has no allowlist, so one finding we cannot act on leaves the check permanently red, and a red check is one nobody reads.
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.
golang/govulncheck-actionhas no allowlist, so one finding nobody can act on leaves the check permanently red, and a permanently red check is a check nobody reads. That is not hypothetical in this repo: it is how twelve security advisories sat untriaged from April to August 2026.scripts/govulncheck.sh: rungovulncheck -format jsonand fail only on findings whose trace names a function, minus the ids in.govulncheck-allow. A finding with no such trace means the module sits in the build graph and nothing more, which is not a reason to fail a build.make vulncheckand CI call the same script, so the two cannot disagree..govulncheck-allow: one entry,GO-2026-6909. The entry records that it is a FALSE POSITIVE and how that was checked, not a risk anyone accepted. Both vulnerabilities it describes are fixed in thecrewjam/samlv0.6.2 this repo builds against; the OSV record is what is stale, carrying{"introduced": "0"}with nofixedevent while its own text says "through v0.5.1".Issuer *Issuerand dereferencesassertion.Issuer.Valuewith no nil check (service_provider.go:1185), and declaresSubject.NameID *NameIDwith no XML tag (schema.go:799), soencoding/xmlmatches a<NameID>in any namespace. v0.6.2 declares a valueIssuer, which cannot be nil, and tagsNameIDxml:"urn:oasis:names:tc:SAML:2.0:assertion NameID"(schema.go:1251)..github/workflows/govulncheck.yml: replace the action withmake vulncheck, and add.govulncheck-allowandscripts/govulncheck.shto the paths filter. Risk to check: the script needsjq, which GitHub runners preinstall; it exits 2 with a message ifjqis absent. The entry carries a 2026-12-08 review date, and the real fix is upstream — the missingfixedevent belongs on x/vulndb: potential Go vuln in github.com/crewjam/saml: nil-pointer panic in validateAssertion and namespace-blind Subject.NameID (<= v0.5.1) golang/vulndb#6909.