Skip to content

Pin Beta Release tag to build commit#2604

Open
runesoerensen wants to merge 1 commit into
buildpacks:mainfrom
runesoerensen:fix/beta-release-target-commitish
Open

Pin Beta Release tag to build commit#2604
runesoerensen wants to merge 1 commit into
buildpacks:mainfrom
runesoerensen:fix/beta-release-target-commitish

Conversation

@runesoerensen

Copy link
Copy Markdown
Contributor

The Create Beta Release step in build.yml doesn't set target_commitish, so softprops/action-gh-release defaults the tag to main. Because release-merge.yml runs in parallel and pushes the release branch into main, by the time the Beta Release step runs, main may include commits that aren't in the binary — causing the published artifacts and the source at the tag to silently disagree (as happened in v0.40.5).

Set target_commitish: ${{ github.sha }} to pin the tag to the release-branch commit the binaries were built from. Mirrors what the Create Pre-Release step already does.

Fixes #2603

@runesoerensen runesoerensen requested review from a team as code owners May 16, 2026 07:08
@github-actions github-actions Bot added this to the 0.41.0 milestone May 16, 2026
@github-actions github-actions Bot added the type/chore Issue that requests non-user facing changes. label May 16, 2026
The `Create Beta Release` step in `build.yml` doesn't set
`target_commitish`, so `softprops/action-gh-release` defaults the tag to
`main`. Because `release-merge.yml` runs in parallel and pushes the
release branch into `main`, by the time the Beta Release step runs,
`main` may include commits that aren't in the binary — causing the
published artifacts and the source at the tag to silently disagree (as
happened in v0.40.5; see buildpacks#2603).

Set `target_commitish: ${{ github.sha }}` to pin the tag to the
release-branch commit the binaries were built from. Mirrors what the
`Create Pre-Release` step already does.

Fixes buildpacks#2603

Signed-off-by: Rune Soerensen <[email protected]>
@runesoerensen runesoerensen force-pushed the fix/beta-release-target-commitish branch from 8eb1774 to 40acdf8 Compare May 16, 2026 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/chore Issue that requests non-user facing changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v0.40.5 binaries don't match tagged source

1 participant