Repository navigation
Build with Go 1.26.9 for eleven standard-library advisories - #881
Conversation
govulncheck reports eleven advisories that the CLI reaches in the Go 1.26.7 standard library (net/http, net/textproto, crypto/tls and html/template), all fixed in Go 1.26.9: GO-2026-6617, 6613, 6612, 6611, 6610, 6608, 6607, 6605, 6603, 6600 and 6599. This is a toolchain line, not a higher go line. setup-go reads the toolchain directive, so every CI and release job builds and scans with 1.26.9, and a local go older than that switches to it. The go line stays the minimum that builds the module: nixpkgs-unstable has only Go 1.26.8, and the flake builds with GOTOOLCHAIN=local, so go 1.26.9 there would fail the required Nix flake build until nixpkgs catches up.
There was a problem hiding this comment.
No issues found across 1 file
You’re at about 92% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact contact@cubic.dev.
There was a problem hiding this comment.
🟢 Approved
The focused toolchain directive correctly updates standard CI and release builds while preserving Nix compatibility.
0 open findings
What changed in this PR
Pins Go 1.26.9 to address standard-library advisories while retaining Go 1.26.7 compatibility for Nix builds.
Changes:
- Adds the
toolchain go1.26.9directive. - Leaves the minimum
godirective unchanged.
[!TIP]
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or rungh pr ready --undo.
Click "Ready for review" or rungh pr readyto reengage.
| File | Description |
|---|---|
go.mod |
Selects Go 1.26.9 without raising the module’s minimum Go version. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Stacked on #880 ("Bump golang.org/x/net to v0.60.0 for GO-2026-6617"). The required Security check (govulncheck) passes only when both fixes are in, so this PR targets that branch. See "Merge order" below.
Finding
govulncheck reports eleven Go 1.26.7 standard library advisories that the CLI reaches, all fixed in Go 1.26.9:
Trivy doesn't flag these, which is why only govulncheck's Security check stays red after #880.
Fix: a
toolchainline, not a highergolineEvery workflow installs Go with
actions/setup-goandgo-version-file: go.mod. setup-go uses thetoolchaindirective when one is present, so CI, govulncheck, CodeQL and the GoReleaser release build all get 1.26.9. A localgoolder than 1.26.9 switches to it automatically: mise'sgo = "1.26"at 1.26.8 runs go1.26.9 here, andmake check-toolchainstill passes.The precedent (#533, "Bump Go toolchain to 1.26.5") raised the
goline instead. That doesn't work today: nixpkgs-unstable has only Go 1.26.8 (1.26.9 is instaging-next), and the flake builds withGOTOOLCHAIN=local. Sogo 1.26.9would fail the required Nix flake builds check until nixpkgs catches up. Thetoolchainline is ignored there, and the Nix build keeps using its locked Go.Proof
govulncheck -tags dev ./...under go1.26.7 with Bump golang.org/x/net to v0.60.0 for GO-2026-6617 #880 applied: exit 3, the 11 stdlib advisories above.x/crypto/openpgpis unmaintained). It has no fixed version, the CLI doesn't call it, and govulncheck doesn't fail on it.go mod tidyis a no-op.bin/cipasses locally.make update-nix-hashbuilds the flake unchanged (nothing to update).Left for later: the Nix-built binary
The flake's
flake.lockpins a nixpkgs carrying Go 1.26.7, sonix buildoutput still links the vulnerable stdlib (that's true onmaintoday too). Oncego_1_26reaches 1.26.9 on nixpkgs-unstable, a follow-up should bumpflake.lockand raise thegoline to 1.26.9.Merge order
deps/x-net-v0.60.0. Bump golang.org/x/net to v0.60.0 for GO-2026-6617 #880 then holds both commits and goes green.main. That keeps the two commits separate.Summary by cubic
Fixes eleven X/Go 1.26.7 standard-library advisories that govulncheck flags: vulnerabilities in
net/http,net/textproto,crypto/tls, andhtml/templateare fixed in Go 1.26.9.Uses a
toolchain go1.26.9directive ingo.modinstead of raising thegoline. CI, govulncheck, CodeQL, and the release build pick up 1.26.9 viaactions/setup-go; localgoswitches automatically. Thegoline stays at 1.26.7 because nixpkgs-unstable only has Go 1.26.8 and the Nix flake builds withGOTOOLCHAIN=local.GO-2026-5932notice is a module-level note with no fix and isn't a scan failure.go mod tidyis a no-op andbin/cipasses locally.go_1_26to 1.26.9; follow-up should bumpflake.lockand raise thegoline.Merge order: merge this into
deps/x-net-v0.60.0, then rebase-merge that intomain.Written for commit 8b223ba. Summary will update on new commits.