0040. Vulnerability checks in CI
Date: 2026-10-24
Context
Section titled “Context”An audit of the published 0.2.0-rc.1 found six known vulnerabilities
reachable from the console binary (five HTTP/2 advisories in
golang.org/x/net v0.58.0, one in Go 1.27.2’s crypto/x509). Nothing
had looked: every pin is checked for integrity (sha256, digests), not for
advisories, and the only vulnerability scan ever run was that audit’s.
The project pins versions that are at least two weeks old, so a fix can
be known before it may be adopted.
Decision
Section titled “Decision”- Every pull request runs
govulncheckin source mode over the console’s code for both release targets (make vulncheck, linux/amd64 and linux/arm64) andtrivyover the image the checks build (make image-scan). Both block: a vulnerability counts when a call path reaches an affected symbol (govulncheck) or has a fix and is HIGH or CRITICAL (trivy). - A weekly workflow repeats both against
mainand the latest published console image, because advisories appear without commits. - Grace periods are explicit and expire:
.govulncheck-allowand.trivyignore.yamlhold an id, a date and a reason; an expired entry fails the check. They exist for the two-weeks rule (a Go point release that is too young) and nothing else. - The tools are pinned like every other tool: govulncheck by module version through the Go checksum database, trivy by release checksum.
SECURITY.mdnames the reporting channel (GitHub private vulnerability reporting) and what the project does itself; the repository’s dependency graph, Dependabot alerts and security updates, CodeQL and secret push protection are on.
Consequences
Section titled “Consequences”- A new advisory turns pull requests red until it is bumped or given a dated grace period; the weekly run turns red when a published image is affected, which is the signal to release a patch.
- The pre-release 0.2.0-rc.1 image stays affected until 0.2.0; the weekly scan says so until then.
- govulncheck is installed with the Go toolchain of the Makefile; running
it through
go runwithGOOSset would build a foreign binary, so the script takes an installed binary and setsGOOS/GOARCHonly for the analysis.