Skip to content

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

Closed

Description

@TerryHowe

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 gomod and
    github-actions ecosystems update module requirements and action refs; neither
    rewrites a go-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.yml will not catch it. That workflow runs
    govulncheck under 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

  1. added
    help wanted
    good first issue
    on Aug 17, 2026
  2. Garv978 commented on Aug 17, 2026

    @Garv978

    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?

  3. added a commit that references this issue on Aug 24, 2026
    6c7e659
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions