From 288824c931da97b71a4884c0146c78233874cd88 Mon Sep 17 00:00:00 2001 From: don-petry <36422719+don-petry@users.noreply.github.com> Date: Tue, 7 Apr 2026 10:17:02 -0700 Subject: [PATCH] fix: pass GH_PAT_WORKFLOWS to actions/checkout so git push uses workflow-scoped token --- .github/workflows/claude-code-reusable.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/claude-code-reusable.yml b/.github/workflows/claude-code-reusable.yml index 19d5490..d767037 100644 --- a/.github/workflows/claude-code-reusable.yml +++ b/.github/workflows/claude-code-reusable.yml @@ -39,6 +39,7 @@ jobs: uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: fetch-depth: 1 + token: ${{ secrets.GH_PAT_WORKFLOWS || github.token }} - name: Run Claude Code if: github.event_name != 'pull_request' || github.event.pull_request.user.login != 'dependabot[bot]' uses: anthropics/claude-code-action@6e2bd52842c65e914eba5c8badd17560bd26b5de # v1.0.89 @@ -70,6 +71,7 @@ jobs: uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: fetch-depth: 1 + token: ${{ secrets.GH_PAT_WORKFLOWS || github.token }} - name: Run Claude Code uses: anthropics/claude-code-action@6e2bd52842c65e914eba5c8badd17560bd26b5de # v1.0.89 with: