Skip to content

ci: gate govulncheck on a written allowlist - #872

Merged
lakhansamani merged 1 commit into
mainfrom
ci/govulncheck-allowlist
Nov 8, 2026
Merged

lakhansamani merged 1 commit into
mainfrom
ci/govulncheck-allowlist

Conversation

@lakhansamani

Copy link
Copy Markdown
Contributor
  • golang/govulncheck-action has 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: run govulncheck -format json and 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 vulncheck and 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 the crewjam/saml v0.6.2 this repo builds against; the OSV record is what is stale, carrying {"introduced": "0"} with no fixed event while its own text says "through v0.5.1".
  • Verified by diffing the two named sites in the module cache. v0.5.1 declares Issuer *Issuer and dereferences assertion.Issuer.Value with no nil check (service_provider.go:1185), and declares Subject.NameID *NameID with no XML tag (schema.go:799), so encoding/xml matches a <NameID> in any namespace. v0.6.2 declares a value Issuer, which cannot be nil, and tags NameID xml:"urn:oasis:names:tc:SAML:2.0:assertion NameID" (schema.go:1251).
  • .github/workflows/govulncheck.yml: replace the action with make vulncheck, and add .govulncheck-allow and scripts/govulncheck.sh to the paths filter. Risk to check: the script needs jq, which GitHub runners preinstall; it exits 2 with a message if jq is absent. The entry carries a 2026-12-08 review date, and the real fix is upstream — the missing fixed event 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.

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.
@lakhansamani
lakhansamani merged commit e6bcedc into main Nov 8, 2026
6 checks passed
@lakhansamani
lakhansamani deleted the ci/govulncheck-allowlist branch November 8, 2026 13:44
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