Skip to content

Commit 94b5ea7

Browse files
Add BOT_TOKEN as github_token to Claude workflow
The GitHub App token used by claude-code-action lacks the `workflow` scope, preventing Claude from pushing changes to .github/workflows/ files. Pass BOT_TOKEN (a PAT with repo + workflow scopes) via the github_token input to fix this. Closes #8, unblocks #9 Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 862a89e commit 94b5ea7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/claude.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
uses: anthropics/claude-code-action@v1
3636
with:
3737
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
38+
github_token: ${{ secrets.BOT_TOKEN }}
3839
allowed_bots: "claude[bot]"
3940
additional_permissions: |
4041
actions: read

0 commit comments

Comments
 (0)