Skip to content

chore: bump go directive and fix trivy CVEs in go.mod#31

Merged
keegancsmith merged 3 commits into
mainfrom
egg-change/go-version-trivy-fixes
Apr 29, 2026
Merged

chore: bump go directive and fix trivy CVEs in go.mod#31
keegancsmith merged 3 commits into
mainfrom
egg-change/go-version-trivy-fixes

Conversation

@keegancsmith

Copy link
Copy Markdown
Member

This PR was generated by Sourcegraph Batch Changes.

Changes

  • Bumps the go directive:
    • To go 1.25.9 for modules currently below 1.26
    • To go 1.26.2 for modules already on 1.26.x
  • Removes any toolchain directive (toolchain selection is handled automatically)
  • Runs go mod tidy to keep go.sum consistent with the new directive
  • Fixes all CVEs reported by trivy fs go.mod by upgrading specific transitive
    dependencies to their minimum safe versions

Why

Ensures a consistent, secure Go toolchain version across all first-party
github.com/sourcegraph/* modules that are depended on by sourcegraph/sourcegraph.

Hatched by a Sourcegraph egg.

Sourcegraph Egg and others added 3 commits April 29, 2026 08:35
The go.mod change in this branch intentionally moved the module to a newer patched Go release, but the test workflow was still pinned to Go 1.19 and could not parse that directive. Reading the version directly from go.mod keeps CI aligned with future toolchain bumps instead of baking in another mismatch.

The SCIP workflow was also failing by default because this repository does not have Sourcegraph upload secrets configured. Switching it to the maintained scip-go action and making the upload path conditional preserves the workflow when credentials exist while avoiding unrelated red builds when they do not.

Test Plan: go test ./...

Amp-Thread-ID: https://ampcode.com/threads/T-019dd884-ecb8-74eb-a61e-418eab0880cd
Co-authored-by: Amp <amp@ampcode.com>
@keegancsmith keegancsmith requested a review from burmudar April 29, 2026 09:26
@keegancsmith keegancsmith merged commit 3afa011 into main Apr 29, 2026
1 of 2 checks passed
@keegancsmith keegancsmith deleted the egg-change/go-version-trivy-fixes branch April 29, 2026 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant