Skip to content

Commit 31b6708

Browse files
Vivian Rookyeger00
andcommitted
Update to prevent injection vuln
Co-authored-by: Yeger <yeger00@gmail.com>
1 parent 8d95132 commit 31b6708

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/update-container-tags.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ jobs:
1818
run: |
1919
git fetch
2020
- name: git checkout
21+
env:
22+
HEADREF: ${{ github.head_ref }}
2123
run: |
22-
git checkout ${{ github.head_ref }}
24+
git checkout "$HEADREF"
2325
2426
# compare to upstream main branch
2527
- name: git add remote

0 commit comments

Comments
 (0)