Skip to content

release-github.yml: float Go version to match other workflows - #2137

Merged
TerryHowe merged 1 commit into
oras-project:mainfrom
sooraj-sky:fix/release-workflow-go-version-pin
Aug 24, 2026
Merged

TerryHowe merged 1 commit into
oras-project:mainfrom
sooraj-sky:fix/release-workflow-go-version-pin

Conversation

@sooraj-sky

Copy link
Copy Markdown
Contributor

Summary

  • .github/workflows/release-github.yml pinned an exact Go patch version (1.25.7) for the job that builds and GPG-signs the release binaries.
  • Every other workflow in the repo (build.yml, codeql-analysis.yml, golangci-lint.yml, vulnerability-check.yml, snapcraft.yaml) already uses the floating minor '1.25', which actions/setup-go resolves to the latest patch at run time.
  • The pin was 6 patches stale and missed a stdlib security fix (GO-2026-5026 / CVE-2026-39821, fixed in 1.25.13), and nothing bumps it automatically since Dependabot's gomod/github-actions ecosystems don't rewrite go-version: string literals.
  • Fix: switch release-github.yml to the same floating minor used everywhere else in the repo, so release binaries pick up patch releases automatically like every other build path.

Fixes #2132

Test plan

  • Confirmed the old exact pin (1.25.7) is gone and matches the floating-minor pattern ('1.25') used by the other 5 workflows in the same repo
  • Workflow itself can only be exercised on an actual release run (workflow_dispatch/tag push) in CI on merge — the change is a one-line value swap of an already-used, valid setup-go input

The release workflow pinned an exact Go patch version (1.25.7), which
was 6 patches behind and missed a stdlib security fix (GO-2026-5026 /
CVE-2026-39821). Every other workflow in the repo (build, codeql-analysis,
golangci-lint, vulnerability-check, snapcraft) already uses the floating
minor version, letting actions/setup-go pick up the latest patch
automatically. Nothing bumps this pin automatically since Dependabot
doesn't rewrite go-version string literals, so it silently ages.

Switch release-github.yml to the same floating minor for consistency.

Fixes oras-project#2132

Signed-off-by: Sooraj Macbook <[email protected]>

@TerryHowe TerryHowe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@TerryHowe
TerryHowe merged commit 6c7e659 into oras-project:main Aug 24, 2026
1 check passed
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.

release-github.yml pins go-version 1.25.7, so release binaries miss stdlib security patches

2 participants