Skip to content

ci: bump Go to 1.26.10 to clear stdlib advisories - #513

Merged
somanshreddy merged 1 commit into
mainfrom
10-24-bump_go_1_26_10
Oct 24, 2026
Merged

somanshreddy merged 1 commit into
mainfrom
10-24-bump_go_1_26_10

Conversation

@somanshreddy

Copy link
Copy Markdown
Collaborator

Description

Bumps the Go toolchain from 1.25.13 to 1.26.10. govulncheck is failing on main and on every open PR because of Go standard-library advisories: GO-2026-6809 (crypto/x509), GO-2026-6617, and the other GO-2026-66xx net/http advisories. Go 1.25 is out of support and has no release that fixes them. They are fixed only in 1.26.9+ and 1.27.2+.

This is a one-line change to go.mod. CI and both release workflows read their Go version from go.mod, so no workflow edits are needed. The patch component stays (go_version_pin_test.go requires it so releases stay reproducible), and there is no toolchain line. go mod tidy made no changes.

The README badge, the CONTRIBUTING prerequisite (which still said 1.23+) and the version example in RELEASE.md are updated to match.

Testing

All of the following ran locally under Go 1.26.10:

  • make test: all packages pass.
  • make lint: 0 issues, using golangci-lint v2.11.4 (the version CI pins) built with Go 1.26. CI's goinstall mode builds the linter with the Go version from go.mod, so CI matches this run.
  • govulncheck ./... (v1.1.4): only the allowlisted GO-2026-5932 remains, so the CI job passes.
  • Cross-builds of ./cmd/heygen for windows/amd64 and darwin/arm64 succeed.

🤖 Generated with Claude Code

Go 1.25 is out of support and has no fix for GO-2026-6809 or the
GO-2026-66xx net/http advisories that now fail govulncheck on main and
every open PR. 1.26.10 carries all of them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@jrusso1020 jrusso1020 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Approve. One-line go.mod bump to 1.26.10, keeping the patch component and adding no toolchain line, so go_version_pin_test.go and the release-reproducibility rules in RELEASE.md still hold. CI reads the version from go.mod, and govulncheck is green at this head. The docs edits (README badge, CONTRIBUTING, RELEASE example) match.

Need · Size · Reuse · Simpler: needed (stdlib advisories with no 1.25 fix), 1 line plus docs, nothing to reuse, nothing simpler.

— Rames

@somanshreddy
somanshreddy merged commit 13ab3eb into main Oct 24, 2026
10 checks passed
@somanshreddy
somanshreddy deleted the 10-24-bump_go_1_26_10 branch October 24, 2026 17:08

@terencechotai2-commits terencechotai2-commits left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Post-merge review at 7a5a41db (merged as 13ab3eb with an identical tree). No findings; I'd have approved.

Every Go pin moves together

  • go.mod is the only pin. All five setup-go steps (ci.yml ×3, dev-release.yml, release-stable.yml) read go-version-file: go.mod.
  • There's no toolchain line, no Dockerfile, and .goreleaser.yaml has no Go version.
  • The CI log installs exactly go1.26.10.
  • The only leftover 1.25 is the illustrative example in the go_version_pin_test.go comment.

govulncheck (v1.1.4, run locally)

  • At this head: only the allowlisted GO-2026-5932.
  • With go.mod set back to 1.25.13: 11 advisories (5932 plus GO-2026-6603/6605/6607/6608/6610–6613/6617/6809). So the bump is what clears them, and the CI job passed at this head.

1.26 behaviour changes. The go line also flips four GODEBUG defaults for the main module (from 1.26.10's internal/godebugs table): cryptocustomrand, httpservecontentmaxranges, tlssecpmlkem and urlstrictcolons.

  • The CLI passes no custom rand to crypto, never calls ServeContent, and sets no TLS curve preferences.
  • urlstrictcolons touches the three url.Parse sites. It only rejects hosts with unbracketed extra colons, which already can't reach a server, and safeVerificationURI fails closed on a parse error.

Run locally under go1.26.10

  • go test ./...: all packages pass.
  • go vet ./...: clean.
  • CGO_ENABLED=0 builds of ./cmd/heygen succeed for all six GoReleaser targets: linux, darwin and windows on amd64 and arm64.

Nit: CONTRIBUTING's "Go 1.26+" is really ≥ 1.26.10 with GOTOOLCHAIN=local. Any Go ≥ 1.21 with the default auto fetches it anyway.

— tai2

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.

3 participants