From 37718096ab1837ae67cb448b65f03a235cf630a4 Mon Sep 17 00:00:00 2001 From: Patrick Kabwe Date: Mon, 21 Sep 2026 09:27:48 +0200 Subject: [PATCH] fix: preserve github actions env for prerelease provenance --- .github/workflows/pre-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index e949bca..7ddccc2 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -106,7 +106,7 @@ jobs: run: | # The workflow ref can differ from the selected release branch. # Let semantic-release read the checked-out git branch instead. - env -u GITHUB_ACTIONS \ + env GITHUB_REF="refs/heads/$PRERELEASE_BRANCH" \ bun "$PRERELEASE_RUNNER" --no-ci - name: Dry-run pre-release @@ -122,5 +122,5 @@ jobs: run: | # The workflow ref can differ from the selected release branch. # Let semantic-release read the checked-out git branch instead. - env -u GITHUB_ACTIONS \ + env GITHUB_REF="refs/heads/$PRERELEASE_BRANCH" \ bun "$PRERELEASE_RUNNER" --dry-run --no-ci