Skip to content

Commit 160853a

Browse files
ci(vuln): remediate GHA script injection
Merge pull request #29 from rudderlabs/fix/sec-93-remediate-gha-injection
2 parents 47e2dd3 + eaf0bbe commit 160853a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/publish-new-release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ jobs:
3030

3131
- name: Extract version from branch name (for release branches)
3232
id: extract-version
33+
env:
34+
BRANCH_NAME: ${{ github.event.pull_request.head.ref }}
3335
run: |
34-
BRANCH_NAME="${{ github.event.pull_request.head.ref }}"
35-
VERSION=${BRANCH_NAME#release/}
36+
VERSION="${BRANCH_NAME#release/}"
3637
echo "release_version=$VERSION" >> $GITHUB_OUTPUT
3738
3839
- name: Checkout source branch

0 commit comments

Comments
 (0)