security: upgrade go version to 1.25.7 to fix CVE-2025-61732#4384
Merged
efiacor merged 2 commits intokptdev:mainfrom Feb 16, 2026
Merged
security: upgrade go version to 1.25.7 to fix CVE-2025-61732#4384efiacor merged 2 commits intokptdev:mainfrom
efiacor merged 2 commits intokptdev:mainfrom
Conversation
Signed-off-by: Minna Howell <minnah@google.com>
✅ Deploy Preview for kptdocs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Signed-off-by: Minna Howell <minnah@google.com>
a2f24e4 to
929d1c0
Compare
There was a problem hiding this comment.
Pull request overview
This PR upgrades the repository’s Go toolchain version to 1.25.7 (per PR title/description: CVE fix) and includes a broad set of mechanical refactors leveraging newer Go stdlib/helpers (slices, maps, strings.*Seq/*Prefix, any).
Changes:
- Bump
godirectives in multiplego.modfiles andGOLANG_VERSIONin theMakefileto 1.25.7. - Replace manual loops/utilities with stdlib helpers (
slices.Contains,maps.Copy) and adopt newer string APIs (SplitSeq,CutPrefix) andstrings.Builder. - Mechanical type modernizations (
interface{}→any,map[string]interface{}→map[string]any) across runtime code and tests.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| thirdparty/cmdconfig/commands/runner/runner.go | Use slices.Contains for slice membership helper. |
| rollouts/go.mod | Bump module Go version to 1.25.7. |
| pkg/test/runner/runner.go | Use strings.SplitSeq iteration in test output sanitizer. |
| pkg/test/live/runner.go | Switch to any/slices.Contains in test runner helpers and YAML decode types. |
| pkg/printer/printer.go | Mechanical signature update to ...any for printing methods. |
| pkg/printer/fake/fake.go | Keep fake printer in sync with printer interface ...any. |
| pkg/live/rgpath.go | Use map[string]any for JSON unmarshal target. |
| pkg/live/load.go | Use map[string]any / []any when constructing unstructured inventory objects. |
| pkg/live/inventoryrg_test.go | Update unstructured test objects to any-typed maps/slices. |
| pkg/live/inventoryrg.go | Update inventory parsing/building types to any. |
| pkg/live/flatten_test.go | Update helper slice types to []any and object maps to any. |
| pkg/lib/kptops/render.go | Update printer implementation signatures to ...any. |
| pkg/lib/errors/resolver/live.go | Build multi-line error messages with strings.Builder. |
| pkg/lib/errors/errors.go | Mechanical any updates for error helpers. |
| pkg/lib/builtins/builtins.go | Use reflect.TypeFor for generic type lookup. |
| pkg/kptfile/kptfileutil/util.go | Use any and slices.Contains for version checks. |
| pkg/debug/formatter.go | Mechanical any updates for deferred JSON formatting. |
| pkg/api/kptfile/v1/validation.go | Use slices.Contains for kustomization filename detection. |
| mdtogo/cmddocs/cmddocs.go | Use strings.CutPrefix instead of HasPrefix/TrimPrefix. |
| internal/util/update/update_test.go | Use slices.Contains in test helper lookup. |
| internal/util/update/merge3/merge3_util_test.go | Use maps.Copy to merge schema definitions in tests. |
| internal/util/update/merge3/MergeTestResources.go | Adjust JSON tags for test resource struct. |
| internal/kptops/set-labels.go | Use maps.Copy to apply labels onto objects. |
| internal/fnruntime/wasmtime.go | Mechanical ...any update for logger interface implementation. |
| internal/alpha/printers/table/printer.go | Use map[string]any for condition parsing. |
| healthcheck/go.mod | Bump module Go version to 1.25.7. |
| go.mod | Bump module Go version to 1.25.7. |
| documentation/go.mod | Bump docs module Go version to 1.25.7. |
| commands/pkg/update/cmdupdate_test.go | Use map[string]any in template execution data. |
| commands/live/migrate/migratecmd_test.go | Update unstructured test objects to any-typed maps/slices. |
| commands/alpha/rollouts/status/status.go | Use []any in table row construction. |
| commands/alpha/rollouts/get/get.go | Use []any in table row construction. |
| commands/alpha/live/plan/diff.go | Mechanical any updates for diff structures and helpers. |
| Makefile | Bump GOLANG_VERSION to 1.25.7. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
liamfallon
approved these changes
Feb 16, 2026
efiacor
approved these changes
Feb 16, 2026
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.
Description
This PR upgrades the Go toolchain and base images to version 1.25.7 to fix CVE-2025-61732