fix(action): use Claude App token by default for claude[bot] identity - #1
Merged
Merged
Conversation
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.
Mearman
force-pushed
the
fix/github-token-fallback
branch
from
February 13, 2026 19:45
8de0411 to
1a31abe
Compare
There was a problem hiding this comment.
Change is correct — removes the fallback that was causing identity mismatch between posted reviews (github-actions[bot]) and the cleanup logic (which queries by actual bot identity using BOT_LOGIN).
The upstream action will create its own GitHub App token with claude[bot] identity when github_token is not provided, fixing the cleanup flow.
|
🎉 This PR is included in version 1.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
github.tokenwhengithub_tokeninput is not providedclaude[bot]Problem
Reviews were being posted as
github-actions[bot]instead ofclaude[bot], causing the comment cleanup logic in03-comment-hygiene.mdto fail since it filters forclaude[bot].Solution
By not passing
github.tokenas a fallback, the upstreamanthropics/claude-code-actioncreates its own GitHub App installation token, which has theclaude[bot]identity.Test plan
claude[bot]