Skip to content

Commit 39f1713

Browse files
authored
fix(ci): sanitize HEAD_REF using environment variable (#7315)
1 parent bb9e455 commit 39f1713

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/pull-request-build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ jobs:
3737
- name: Build
3838
env:
3939
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
HEAD_REF: ${{ github.event.pull_request.head.ref }}
4041
run: |
4142
./$DOWNLOAD_FOLDER/$SCRIPT_LOCATION \
4243
--repo "${{ github.repository }}" \
43-
--branch "${{ github.event.pull_request.head.ref }}" \
44+
--branch "$HEAD_REF" \
4445
--pr-number "${{ github.event.pull_request.number }}" \
4546
--run-id "${{ github.run_id }}"
46-
timeout-minutes: 120 # 2 hours
47+
timeout-minutes: 120 # 2 hours

0 commit comments

Comments
 (0)