Skip to content

Commit 145e184

Browse files
Fix for code scanning alert no. 21: Code injection
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent e4a79a1 commit 145e184

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/release-gate.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ jobs:
3333

3434
- name: Extract and validate version
3535
id: version
36+
env:
37+
BRANCH_REF: ${{ github.event.pull_request.head.ref }}
3638
run: |
37-
BRANCH="${{ github.event.pull_request.head.ref }}"
39+
BRANCH="$BRANCH_REF"
3840
NEW_VERSION="${BRANCH#release/}"
3941
echo "new=${NEW_VERSION}" >> $GITHUB_OUTPUT
4042

0 commit comments

Comments
 (0)