Skip to content

fix(action): use Claude App token by default for claude[bot] identity - #1

Merged
Mearman merged 1 commit into
mainfrom
fix/github-token-fallback
Feb 13, 2026
Merged

Mearman merged 1 commit into
mainfrom
fix/github-token-fallback

Conversation

@Mearman

@Mearman Mearman commented Feb 13, 2026

Copy link
Copy Markdown
Member

Summary

  • Removes fallback to github.token when github_token input is not provided
  • Allows upstream action to create its own GitHub App token which posts as claude[bot]
  • Ensures review identity matches the filter in comment hygiene prompts

Problem

Reviews were being posted as github-actions[bot] instead of claude[bot], causing the comment cleanup logic in 03-comment-hygiene.md to fail since it filters for claude[bot].

Solution

By not passing github.token as a fallback, the upstream anthropics/claude-code-action creates its own GitHub App installation token, which has the claude[bot] identity.

Test plan

  • Merge this PR
  • Trigger a review on another PR
  • Verify review is posted as claude[bot]
  • Trigger another review on the same PR after changes
  • Verify previous review is properly superseded

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
Mearman force-pushed the fix/github-token-fallback branch from 8de0411 to 1a31abe Compare February 13, 2026 19:45

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@Mearman
Mearman merged commit db0bfe7 into main Feb 13, 2026
1 check passed
@Mearman
Mearman deleted the fix/github-token-fallback branch February 13, 2026 19:48
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant