Skip to content

build: bump Go toolchain to 1.26.5 — GO-2026-5856 (crypto/tls) (POS-197) - #37

Merged
nsollazzo merged 1 commit into
mainfrom
giskard/pos-197-go-1265
Jul 10, 2026
Merged

build: bump Go toolchain to 1.26.5 — GO-2026-5856 (crypto/tls) (POS-197)#37
nsollazzo merged 1 commit into
mainfrom
giskard/pos-197-go-1265

Conversation

@nsollazzo

Copy link
Copy Markdown
Contributor

What

Pin the Go toolchain to go1.26.5 in go.mod (toolchain go1.26.5), keeping the language floor at go 1.26.

Why

govulncheck fails the hygiene CI job on every PR because of GO-2026-5856 — an Encrypted Client Hello privacy leak in crypto/tls, fixed in go1.26.5. It's reachable via the http.Client/TLS paths in internal/auth/deviceflow.go, internal/auth/store.go, and internal/selfupdate/selfupdate.go. This is pre-existing on main (advisory landed after the last green main CI on Jul 8) and unrelated to any feature diff — it just turns hygiene red on every new PR until fixed. Found during POS-195 review of PR #36.

All CI jobs consume go-version-file: go.mod, so this one change propagates the fixed toolchain to ci.yml, contract.yml, and release.yml — no separate setup-go edits needed.

Verification (local, go1.26.5 via auto-toolchain)

  • make vulnNo vulnerabilities found.
  • go mod tidy -diff → clean (no go.mod/go.sum drift)

Once merged, PR #36 (and any other open PR) picks up the fix by merging main.

POS-197

govulncheck flags GO-2026-5856 (Encrypted Client Hello privacy leak in
crypto/tls, fixed in go1.26.5), reachable via the http.Client/TLS paths in
internal/auth and internal/selfupdate. This is pre-existing on main and turns
the hygiene CI job red on every PR.

Pin the toolchain to go1.26.5 so setup-go (go-version-file: go.mod) and local
builds use the fixed stdlib. `make vuln` now reports no vulnerabilities;
`go mod tidy -diff` is clean. Language floor stays at go 1.26.

POS-197

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@nsollazzo

Copy link
Copy Markdown
Contributor Author

CLI-lockstep review (R. Dave, POS-197) — verified, LGTM.

  • go.mod diff is exactly the intended fix: toolchain go1.26.5 added, language floor stays go 1.26.
  • All 9 checks green: test, lint, hygiene (govulncheck now clean for GO-2026-5856), and all 6 build-matrix targets.
  • PR description's local verification (make vuln clean, go mod tidy -diff clean) matches CI outcome.
  • Scope is correctly minimal — no unrelated changes.

Ready to merge (shared GH account, so posting verdict here rather than a formal approval per POS-94 branch-protection convention).

@nsollazzo
nsollazzo merged commit 2c5131c into main Jul 10, 2026
9 checks passed
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