Repository navigation
fix(deps): build with Go 1.26.10 and upgrade modules with reachable vulnerabilities - #71
Merged
Merged
Conversation
Add toolchain go1.26.10 to go.mod and keep the go 1.23.5 module minimum. test.yml now takes the Go version from go.mod, the same file release.yml reads, so test and release builds use the same Go. Go 1.26.10 fixes GO-2026-6809 (crypto/x509) and the go1.26.9 net/http set GO-2026-6617, GO-2026-6613, GO-2026-6612, GO-2026-6611, GO-2026-6603. Five reachable module findings remain; a follow-up PR handles them.
`go install pkg@version` builds outside the module, so it used the setup-go Go (1.23.5) and golangci-lint refused the 1.26.10 target. Set GOTOOLCHAIN for that step only.
15 tasks done
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Upgrade the modules that govulncheck reports as reachable: cloudflare/circl v1.6.3, ulikunitz/xz v0.5.17, and aws-sdk-go-v2 service/s3 v1.97.3 (with eventstream v1.7.8). s3 v1.97.3 and eventstream v1.7.8 declare go 1.24, so the go line moves from 1.23.5 to 1.24. ProtonMail/go-crypto stays at v1.0.0: from v1.2.0, clearsign.Decode drops the trailing newline and breaks the byte-identical InRelease check in production_restore.go. GO-2026-5932 remains: x/crypto/openpgp has no fix, and go-rpmutils reaches it.
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
repogenbuilt with Go 1.23.5, which is end of life. With go1.23.5,[email protected]reported 57 reachable vulnerabilities. This PR moves the build toolchain to go1.26.10, upgrades the four modules with reachable vulnerabilities, and moves the modulegoline from 1.23.5 to 1.24, which the fixed AWS SDK modules require.Standard library advisories fixed
crypto/x509, fixed in go1.26.10.net/httpset, fixed in go1.26.9.Module advisories fixed
aws-sdk-go-v2eventstream (eventstream v1.6.10,service/s3 v1.78.2).cloudflare/circl v1.3.3, fixed in v1.6.3.cloudflare/circl v1.3.3, fixed in v1.6.1.ulikunitz/xz v0.5.11, fixed in v0.5.15.Versions
github.com/cloudflare/circlgithub.com/ulikunitz/xzgithub.com/aws/aws-sdk-go-v2/service/s3github.com/aws/aws-sdk-go-v2/aws/protocol/eventstreamgithub.com/aws/aws-sdk-go-v2github.com/aws/smithy-gogolang.org/x/cryptogolang.org/x/sysgithub.com/ProtonMail/go-cryptogolineThe other
aws-sdk-go-v2internal modules moved asgo getrequired; no module went past its first fixed version.The
goline and the toolchainservice/s3 v1.97.3andeventstream v1.7.8declarego 1.24, so thegoline must move to 1.24 to take the fix. Repogen is a CLI binary and no frostyard module imports it, so this line affects only repogen's own builds. The build toolchain stays go1.26.10.What stays
golang.org/x/crypto/openpgp, no fix). The traces go throughgithub.com/sassoftware/go-rpmutils(verify.go,signatures.go) frominternal/generator/rpm/parser.go.x/cryptov0.41.0 is the newest version that fits; v0.53.0 and later declarego 1.25/1.26.ProtonMail/go-cryptov1.0.0, not v1.5.2. From v1.2.0,clearsign.Decodedrops the trailing newline fromPlaintext, so the byte-identicalInReleasecheck atinternal/generator/deb/production_restore.go:222fails and 35 signing and production tests fail. That is a production-signing code change and is out of scope here.actions/setup-goactions/setup-goat the pinned release SHA (40f1582…, v5.6.0) parses only thegoline of ago.modversion file (parseGoVersionFile:contents.match(/^go (\d+(\.\d+)*)/m)); it ignorestoolchain. Both workflows install Go 1.24 from thegoline, and thetoolchain go1.26.10directive makes the go command build with 1.26.10 under the defaultGOTOOLCHAIN=auto.release.ymlis unchanged.The golangci-lint install step sets
GOTOOLCHAIN: go1.26.10, becausego install pkg@versionbuilds outside this module and otherwise used the setup-go Go; the linter would then refuse its 1.26.10 target.Files changed
go.mod—go 1.24,toolchain go1.26.10, upgraded requirements.go.sum— checksums for the upgraded modules..github/workflows/test.yml—go-version-file: go.mod, andGOTOOLCHAINfor the linter install.README.md,docs/design/overview.md,docs/design/ci-cd.md,test/README.md— module minimum Go 1.24, build toolchain go1.26.10.Checks
make build— compiles on go1.26.10make fmt— no diffmake lint— golangci-lint v2.3.1 (the CI version):0 issues.make test-unit—go test -v -short -race ./...passes; all signing tests pass, none skippedgo test ./...— full suite passes, including the integration/e2e suite (test/50s)go vet ./...cleanDocs housekeeping
Verification
node scripts/check-docs.mjsgreen (23 docs, 239 links, 9 symlinks)go mod tidyleavesgo.mod/go.sumunchangedGOTOOLCHAIN=go1.26.10 go run golang.org/x/vuln/cmd/[email protected] ./...:Your code is affected by 1 vulnerability from 1 module— GO-2026-5932 only. No standard library or AWS/circl/xz findings remain.Risk
Tier 2 (moderate): a patch-level toolchain move plus dependency upgrades that require a
goline move. No source, API, workflow-behavior, or release-config change, and the signing tests pass unchanged. Rollback: revert this PR.