Repository navigation
Description
Summary
.github/workflows/release-github.yml pins an exact Go patch version:
- name: setup go environment
uses: actions/setup-go@... # v7.0.0
with:
go-version: '1.25.7'Every other workflow in the repo uses the floating minor '1.25', which
actions/setup-go resolves to the latest available patch at run time:
| Workflow | go-version |
Tracks patches? |
|---|---|---|
build.yml |
['1.25'] |
yes |
codeql-analysis.yml |
['1.25'] |
yes |
golangci-lint.yml |
['1.25'] |
yes |
vulnerability-check.yml |
'1.25' |
yes |
snapcraft.yaml |
go/1.25/stable |
yes |
release-github.yml |
'1.25.7' |
no |
Because release-github.yml is the workflow that builds and GPG-signs the
binaries attached to a GitHub release, the artifacts users actually download are
the one thing in the repo built on a frozen, silently ageing toolchain.
Impact
Go 1.25.7 is currently 6 patch releases behind, and the gap includes at least
one stdlib security fix. As a concrete example, GO-2026-5026 /
CVE-2026-39821 (golang.org/x/net/idna accepting Punycode labels that decode
to an ASCII-only label, vendored into net/http) is fixed in Go 1.25.13,
1.26.6, and 1.27.0-rc.3. Binaries built with 1.25.7 still carry the affected
stdlib, so downstream SCA scanners flag the published release artifacts.
Two things make this easy to miss:
- Nothing bumps the pin automatically. Dependabot's
gomodand
github-actionsecosystems update module requirements and action refs; neither
rewrites ago-version:string literal. The pin only moves when someone edits
it by hand, and it has not been touched in the recent history of the file. vulnerability-check.ymlwill not catch it. That workflow runs
govulncheckunder floating'1.25', so it analyses against an up-to-date
toolchain and reports clean even while the release job is still on 1.25.7.
Related: #2131 bumps the Dockerfile builder stage to golang:1.26.6-alpine for
this same CVE. That fixes the ghcr.io/oras-project/oras image only — the
release binaries are a separate build path and remain on 1.25.7.
Proposed fix
In .github/workflows/release-github.yml, change the pin to the floating minor
so it matches the rest of the repo and picks up patch releases automatically:
- go-version: '1.25.7'
+ go-version: '1.25'If maintainers prefer an exact pin here for release reproducibility, the
alternative is bumping it to '1.25.13' (or newer) now and treating the pin as
something that needs periodic manual review — but the floating minor is
consistent with the other five build paths and needs no ongoing upkeep.
Worth confirming as part of the change: go.mod declares go 1.25.7, which is a
minimum language version rather than a toolchain pin, so it does not hold the
build back — any toolchain ≥ 1.25.7 satisfies it. No toolchain directive is
present.
Verification
After the change, a release build should report a Go version ≥ 1.25.13 in the
setup go environment step log, and govulncheck against the produced binary
should no longer report GO-2026-5026.
Activity
Garv978 commentedon Aug 17, 2026
Hi! I'd like to work on this issue. I understand that the release workflow is pinned to Go 1.25.7 while the other workflows track the latest 1.25 patch, which can leave released binaries with outdated stdlib security fixes. I'll update release-github.yml to use the floating 1.25 version and verify the release workflow/build accordingly. Is it okay if I take this one?
ci: float Go version in release workflow to match other workflows (or…