Skip to content

Commit c8b2b22

Browse files
authored
Fix: GitHub workflow script injection (nock#2805)
Signed-off-by: Joyce Brum <[email protected]>
1 parent f155498 commit c8b2b22

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/fix-formatting.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ name: Fix formatting
88
permissions:
99
contents: read
1010

11+
env:
12+
HEAD_REF: ${{ github.head_ref }}
13+
1114
jobs:
1215
fixFormatting:
1316
permissions:
@@ -33,4 +36,4 @@ jobs:
3336
git config user.name "github-actions"
3437
git add .
3538
git commit -m "style: format files with Prettier" | true # ignore error if there are no changes to commit
36-
git push origin HEAD:${{ github.head_ref }}
39+
git push origin HEAD:$HEAD_REF

0 commit comments

Comments
 (0)