Skip to content

chore: add govulncheck security scanning to CI - #32

Merged
em-redhat merged 4 commits into
unbound-force:mainfrom
em-redhat:opsx/ci-govulncheck
Jul 16, 2026
Merged

em-redhat merged 4 commits into
unbound-force:mainfrom
em-redhat:opsx/ci-govulncheck

Conversation

@em-redhat

Copy link
Copy Markdown
Contributor

Summary

Add govulncheck security scanning to the CI pipeline, implementing issue #23.

Changes

  • .github/workflows/ci.yml: Add a Govulncheck step after Vet and before Test that runs govulncheck ./... to detect known vulnerabilities in Go dependencies
  • AGENTS.md: Document that the Build and Test CI check now includes govulncheck for vulnerability scanning
  • openspec/changes/ci-govulncheck/: Full OpenSpec change artifacts (proposal, design, spec, tasks)

Design Decisions

  • govulncheck is added as a step within the existing Build and Test job (not a separate workflow), so the release preflight needs no changes
  • Uses go install golang.org/x/vuln/cmd/govulncheck@latest to always get the most current vulnerability database
  • Call-graph-aware scanning means only vulnerabilities in reachable code paths cause failures

Verification

  • govulncheck ./... passes locally (0 vulnerabilities in call graph)
  • All existing tests pass (go test ./... -count=1 -race)
  • go vet ./... passes

Fixes #23

em-redhat added 2 commits July 7, 2026 13:07
- 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.
@em-redhat em-redhat moved this to In Review 👀 in Unbound Force Planning Jul 7, 2026
@em-redhat
em-redhat requested review from jflowers and sonupreetam July 7, 2026 12:18
@em-redhat em-redhat self-assigned this Jul 7, 2026
Comment thread .github/workflows/ci.yml Resolved

@sonupreetam sonupreetam left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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?

@em-redhat

Copy link
Copy Markdown
Contributor Author

@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.

@sonupreetam sonupreetam left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jflowers jflowers left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

Comment thread .uf/replicator/replicator.log Resolved
@em-redhat
em-redhat merged commit 097ed2a into unbound-force:main Jul 16, 2026
1 check passed
@em-redhat
em-redhat deleted the opsx/ci-govulncheck branch July 16, 2026 11:20
@em-redhat em-redhat moved this from In Review 👀 to Done ✔️ in Unbound Force Planning Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done ✔️

Development

Successfully merging this pull request may close these issues.

chore: add govulncheck security scanning to CI

3 participants