Repository navigation
deps: bump golang.org/x/crypto to v0.55.0 and golang.org/x/text to v0.41.0 - #431
Conversation
….41.0 Co-Authored-By: Claude Opus 5.5 <[email protected]>
7ad1e83 to
139c237
Compare
jrusso1020
left a comment
There was a problem hiding this comment.
Approving at 139c237b. I re-ran govulncheck before and after the bump, and the PR's claims hold.
govulncheck, origin/main vs this head
I ran govulncheck v1.1.4, built with Go 1.25.13 (the go.mod toolchain), with -show verbose ./....
| Advisory | Module | main |
This PR |
|---|---|---|---|
| GO-2026-5932 | x/crypto/openpgp | called (via go-selfupdate), no fix | unchanged, still allowlisted in ci.yml |
| GO-2026-6303 | x/crypto | imported, not called | gone (fixed in v0.55.0) |
| GO-2026-6354 | x/crypto/ssh | imported, not called | imported, not called |
| GO-2026-6355 | x/crypto/ssh | imported, not called | imported, not called |
| GO-2026-6629 | x/text | module only | gone (v0.41.0) |
| GO-2026-5970 | x/text | module only | gone (fixed in v0.39.0) |
The ssh claim checks out. govulncheck lists 6354 and 6355 under "Package Results" only, meaning the package is imported but no vulnerable symbol is reachable from this code. The import chain is cmd/heygen → go-selfupdate → code.gitea.io/sdk/gitea → x/crypto/ssh. x/crypto v0.56.0's go.mod says go 1.26.0, so it really does need the toolchain bump.
go.sum and the bump
go mod verifyreports all modules verified, andgo mod tidyproduces no diff. The go.sum diff swaps exactly the old and new hashes for the five modules, with no leftovers.go 1.25.13with notoolchainline, as RELEASE.md requires.- x/sys v0.45 → v0.47: the CLI uses
Flock,CloseOnExec,LockFileExandUnlockFileEx, plus some constants and types. The function signatures are identical in both versions. - It builds for linux, darwin and windows, and
go test ./...passes.
— Rames
terencechotai2-commits
left a comment
There was a problem hiding this comment.
Reviewed at 139c237. Looks good. Nothing to change.
Verified locally (Go 1.25.13):
-
go.mod: stillgo 1.25.13, with notoolchainline. Onlyx/crypto,x/text,x/sys,x/termandx/syncmove. -
Module consistency:
go mod verifypasses, andgo mod tidyleavesgo.modandgo.sumunchanged. -
govulncheck,
origin/mainvs this head:main PR called (symbol level) GO-2026-5932 GO-2026-5932 imported, not called GO-2026-6354, -6355, -6303, -6629, -5970 GO-2026-6354, -6355 - GO-2026-6303 (fixed in x/crypto 0.55.0), GO-2026-6629 (x/text 0.41.0) and GO-2026-5970 (x/text 0.39.0) are cleared, as claimed.
- The two left are fixed only in
x/[email protected]. govulncheck reports them as imported but not called. - GO-2026-5932 is still the only symbol-level hit, through
selfupdate's openpgp init. It is the oneci.yml's allowlist (:101-124) permits, so thegovulncheckgate behaves the same as before.
-
Build and tests:
go build ./...passes, and theheygenbinary cross-builds for darwin and windows.go test ./...passes.
— tai2
Scope
Surfaces: CLI dependencies | Module: Build
Summary
govulncheck(Go's vulnerability database) reports six advisories in two indirect dependencies,golang.org/x/cryptoandgolang.org/x/text. Dependabot raises none of them, because GitHub's advisory database has these either unreviewed or not at all. This bumps both modules as far as the pinned Go 1.25 toolchain allows, which clears three of them.Fix
golang.org/x/cryptov0.52.0 to v0.55.0: fixes GO-2026-6303.golang.org/x/textv0.37.0 to v0.41.0: fixes GO-2026-5970 and GO-2026-6629.go mod tidyalso movesgolang.org/x/sys(v0.47.0),golang.org/x/term(v0.45.0) andgolang.org/x/sync(v0.22.0) to what those versions require. Thex/sysfunctions the CLI calls (file locks and detached-process attributes for the update check) are unchanged between the two versions.go.modkeepsgo 1.25.13with notoolchainline, as RELEASE.md requires.Left on purpose:
x/crypto/ssh, which the CLI imports but never calls. They are fixed only in v0.56.0, which needs Go 1.26, so they wait for a toolchain bump.x/crypto/openpgp, via the self-update library) has no fix, and stays on CI's existing allowlist with its rationale.Testing
make lint(also for Windows and macOS) andmake testpass, and the CLI builds for Linux, macOS and Windows.govulncheckbefore: six advisories; after: only the three above.🤖 Generated with Claude Code