Skip to content

Commit

Permalink
Fix: GitHub workflow script injection (nock#2805)
Browse files Browse the repository at this point in the history
Signed-off-by: Joyce Brum <[email protected]>
  • Loading branch information
joycebrum authored Nov 13, 2024
1 parent f155498 commit c8b2b22
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/fix-formatting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ name: Fix formatting
permissions:
contents: read

env:
HEAD_REF: ${{ github.head_ref }}

jobs:
fixFormatting:
permissions:
Expand All @@ -33,4 +36,4 @@ jobs:
git config user.name "github-actions"
git add .
git commit -m "style: format files with Prettier" | true # ignore error if there are no changes to commit
git push origin HEAD:${{ github.head_ref }}
git push origin HEAD:$HEAD_REF

0 comments on commit c8b2b22

Please sign in to comment.