OADP-7565: Go 1.25.8 toolchain + golang.org/x/* CVE bumps#164
OADP-7565: Go 1.25.8 toolchain + golang.org/x/* CVE bumps#164
Conversation
- Add toolchain go1.25.8 (fixes GO-2026-4337, GO-2026-4340, GO-2026-4341, GO-2026-4342, CVE-2026-25679, CVE-2026-27137) - golang.org/x/net v0.38.0 → v0.52.0 (fixes GHSA-vvgc-356p-c3xw) - golang.org/x/sys v0.35.0 → v0.42.0 - golang.org/x/text v0.23.0 → v0.35.0 - golang.org/x/term v0.30.0 → v0.41.0 - golang.org/x/mod v0.22.0 → v0.33.0 Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
- lint.yml: Replace hardcoded go-version '1.25' with go-version-file: 'go.mod' - test.yml: Replace hardcoded go-version '1.24' with go-version-file: 'go.mod' and bump actions/setup-go@v4 → @v6 (supports toolchain directive) Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
|
@kaovilai: This pull request references OADP-7565 which is a valid jira issue. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
📝 WalkthroughWalkthroughUpdated GitHub Actions workflows to dynamically source Go versions from Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@kaovilai: This pull request references OADP-7565 which is a valid jira issue. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
There was a problem hiding this comment.
Pull request overview
Updates the module’s Go toolchain and golang.org/x/* dependencies to pick up security fixes, and aligns CI to use the Go version declared in go.mod.
Changes:
- Add
toolchain go1.25.8togo.modto ensure builds use the patched Go toolchain. - Bump
golang.org/x/netand related transitivegolang.org/x/*modules to newer versions (and updatego.sumaccordingly). - Update GitHub Actions workflows to use
actions/setup-go@v6withgo-version-file: go.mod.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
go.mod |
Adds toolchain directive and bumps indirect golang.org/x/* module versions. |
go.sum |
Updates sums to match the new golang.org/x/* dependency versions. |
.github/workflows/test.yml |
Switches to setup-go@v6 and reads version from go.mod. |
.github/workflows/lint.yml |
Reads Go version from go.mod (already on setup-go@v6). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| - name: Set up Go | ||
| uses: actions/setup-go@v4 | ||
| uses: actions/setup-go@v6 | ||
| with: | ||
| go-version: '1.24' | ||
| go-version-file: 'go.mod' |
There was a problem hiding this comment.
Other workflows in this repo still use actions/setup-go@v5 (e.g., cross-arch-build-test.yml, release.yml, quay_binaries_push.yml). If the toolchain directive in go.mod requires setup-go@v6 to parse/apply correctly, those workflows may start failing or may run with an unpatched Go toolchain, undermining the CVE fix. Consider bumping those workflows to setup-go@v6 as well (or otherwise ensuring they correctly honor the toolchain directive).
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Joeavaikath, kaovilai, weshayutin The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
out of date gahharhrhahrh rebase required.. then will push to origin next time |
|
PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
Closed in favor of #167. Prior PRs were pushed directly to Note Responses generated with Claude |
Summary
toolchain go1.25.8directive to fix Go stdlib CVEs:golang.org/x/netv0.38.0 → v0.52.0 (fixes GHSA-vvgc-356p-c3xw, XSS in HTML tokenizer)x/sys→ v0.42.0,x/text→ v0.35.0,x/term→ v0.41.0,x/mod→ v0.33.0go-version-file: 'go.mod'instead of hardcoded versionstest.yml: bumpedactions/setup-go@v4→@v6(supports toolchain directive)Note
golang.org/x/cryptois not in this module's dependency graph — those CVEs do not apply here.Supersedes #159
Test plan
go build ./...passesNote
Responses generated with Claude
Summary by CodeRabbit