From e15061fe7ab168cfbfc1842faa579e9fcd1ed668 Mon Sep 17 00:00:00 2001 From: Ian Littman Date: Tue, 10 Feb 2026 14:11:17 -0600 Subject: [PATCH] Move branch declaration into env var to avoid having branch name be executable (#39636) --- .github/workflows/goreleaser-snapshot-fleet.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/goreleaser-snapshot-fleet.yaml b/.github/workflows/goreleaser-snapshot-fleet.yaml index 6f08f2782e..91d453f922 100644 --- a/.github/workflows/goreleaser-snapshot-fleet.yaml +++ b/.github/workflows/goreleaser-snapshot-fleet.yaml @@ -71,8 +71,9 @@ jobs: - name: Compute version from branch id: compute_version + env: + BRANCH: ${{ github.head_ref || github.ref_name }} run: | - BRANCH="${{ github.head_ref || github.ref_name }}" VERSION=$(tools/version-from-branch.sh "$BRANCH" 2>/dev/null) if [ -z "$VERSION" ]; then # Fall back to default snapshot version