Upgrade Go to 1.26.2 and fix vulnerabilities#640
Conversation
There was a problem hiding this comment.
Pull request overview
Upgrades the project’s Go version and updates selected dependencies to address reported vulnerabilities (notably in the Go stdlib) and keep the module ecosystem current.
Changes:
- Bump
go.modGo version to1.26.2 - Update dependency versions (e.g.,
ginkgo,protobuf,go-yaml,go-isatty) and refreshgo.sumaccordingly
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| go.mod | Updates the Go version and bumps/records updated module requirements. |
| go.sum | Refreshes module checksums to match the updated dependency graph. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| module github.com/homeport/dyff | ||
|
|
||
| go 1.25.0 | ||
| go 1.26.2 |
There was a problem hiding this comment.
The go directive sets the module’s language version/minimum Go version but does not ensure consumers/CI actually use Go 1.26.2 (and typically won’t enforce a patch-level toolchain). Since the stated goal is to remediate stdlib CVEs by upgrading to 1.26.2, consider pinning the toolchain (e.g., adding a toolchain go1.26.2 directive) and/or aligning CI to that exact version so builds don’t silently run on a different Go release.
| go 1.26.2 | |
| go 1.26.2 | |
| toolchain go1.26.2 |
PR Summary: Vulnerability Fixes and Go Version Upgrade
Description
This PR addresses 16 vulnerabilities in the Go standard library by upgrading the Go version to the latest stable release and updating project dependencies to their latest versions.
Scan Results Comparison
Before (Go 1.25.0)
osv-scanneridentified 16 vulnerabilities in the Go standard library:After (Go 1.26.2)
osv-scannerandtrivyconfirm all vulnerabilities are resolved:Key Changes
go.modfrom1.25.0to1.26.2.github.com/goccy/go-yaml:v1.18.0->v1.19.2github.com/onsi/ginkgo/v2:v2.28.1->v2.28.2google.golang.org/protobuf:v1.36.7->v1.36.11github.com/mattn/go-isatty:v0.0.21->v0.0.22