Repository navigation
chore: add govulncheck security scanning to CI - #32
Conversation
- Add Govulncheck step to ci.yml (after Vet, before Test) - Document govulncheck in AGENTS.md CI Parity Gate section - Add OpenSpec change artifacts (proposal, design, spec, tasks) Fixes unbound-force#23
The CI runner with go1.25.7 has 9 known stdlib vulnerabilities (GO-2026-4601 through GO-2026-4918) that cause govulncheck to fail. Updating to go1.25.11 resolves all of them.
sonupreetam
left a comment
There was a problem hiding this comment.
@em-redhat Do you think replicator should also adopt ci_security.yml with the org-infra reusable workflows (OSV-Scanner + Trivy + OpenSSF Scorecards) like the parent unbound-force/unbound-force repo does?
@sonupreetam That's addressed in #25 so it's in the pipeline whenever it gets moved out of backlog. This PR can still be a decent step to cover go specific issues |
Pin govulncheck install to v1.5.0 commit SHA instead of @latest, consistent with how GitHub Actions are pinned in this project. Addresses PR unbound-force#32 review feedback.
…5856) GO-2026-5856 is a privacy leak in crypto/tls Encrypted Client Hello, fixed in go1.25.12. The govulncheck vuln database is fetched at runtime regardless of the pinned binary version, so even govulncheck v1.5.0 detects this now that the advisory has been published. This is the same pattern as the go1.25.7->1.25.11 bump: the CI runner installs whatever Go version go.mod specifies via actions/setup-go with go-version-file, so bumping go.mod is the fix.
jflowers
left a comment
There was a problem hiding this comment.
APPROVE -- well-executed change with thorough OpenSpec artifacts, clean CI, and good supply chain hygiene (commit hash pinning for govulncheck). One minor scope finding below.
This review was generated by /review-pr (AI-assisted).
Summary
Add
govulnchecksecurity scanning to the CI pipeline, implementing issue #23.Changes
.github/workflows/ci.yml: Add aGovulncheckstep afterVetand beforeTestthat runsgovulncheck ./...to detect known vulnerabilities in Go dependenciesAGENTS.md: Document that theBuild and TestCI check now includesgovulncheckfor vulnerability scanningopenspec/changes/ci-govulncheck/: Full OpenSpec change artifacts (proposal, design, spec, tasks)Design Decisions
govulncheckis added as a step within the existingBuild and Testjob (not a separate workflow), so the release preflight needs no changesgo install golang.org/x/vuln/cmd/govulncheck@latestto always get the most current vulnerability databaseVerification
govulncheck ./...passes locally (0 vulnerabilities in call graph)go test ./... -count=1 -race)go vet ./...passesFixes #23