From 1a31abe7f0e059aa8b1968e9f1ece73673bb369f Mon Sep 17 00:00:00 2001 From: Joseph Mearman Date: Fri, 13 Feb 2026 18:42:26 +0000 Subject: [PATCH] fix(action): use Claude App token by default for claude[bot] identity Remove fallback to github.token which caused reviews to be posted as github-actions[bot] instead of claude[bot]. When github_token is not provided, the upstream action creates its own GitHub App token that posts as claude[bot], matching the filter in comment hygiene prompts. --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index d8bad47..9746d2a 100644 --- a/action.yml +++ b/action.yml @@ -25,7 +25,7 @@ inputs: description: "Anthropic API key (alternative to OAuth token)" required: false github_token: - description: "GitHub token (uses default GITHUB_TOKEN if not provided)" + description: "GitHub token (uses Claude App token if not provided, posts as claude[bot])" required: false claude_args: description: "Override claude args" @@ -198,7 +198,7 @@ runs: prompt: ${{ steps.compose.outputs.prompt }} claude_code_oauth_token: ${{ inputs.claude_code_oauth_token }} anthropic_api_key: ${{ inputs.anthropic_api_key }} - github_token: ${{ inputs.github_token || github.token }} + github_token: ${{ inputs.github_token }} claude_args: ${{ inputs.claude_args || format('--max-turns 50 --allowedTools "{0}"', steps.compose.outputs.tools) }} track_progress: ${{ inputs.track_progress }} include_fix_links: ${{ inputs.include_fix_links }}