From 8fa77bc93e1bfde2b5b418c093ca070a2e86321b Mon Sep 17 00:00:00 2001 From: Ashwin Bharambe Date: Mon, 28 Jul 2025 13:02:04 -0700 Subject: [PATCH] fix(pre-commit): push properly version 3 --- .github/workflows/pre-commit.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index fefec0b31..d0faf0711 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -14,6 +14,9 @@ concurrency: jobs: pre-commit: runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write steps: - name: Checkout code @@ -54,7 +57,7 @@ jobs: git commit -m "Apply pre-commit fixes" # push to the PR branch - git push origin HEAD:${{ github.ref }} + git push origin HEAD:${{ github.head_ref }} echo "Pre-commit fixes committed and pushed" else echo "No changes to commit"