Skip to content

Conversation

@liobrasil
Copy link
Collaborator

@liobrasil liobrasil commented Feb 9, 2026

Fix Claude Code Review Workflow

Fix Claude Code Review workflow so review comments actually appear on PRs.


Problem

The workflow was using github_token: ${{ github.token }} which overrides Claude's built-in app authentication. This caused:

  • Comments posted as github-actions[bot] instead of claude[bot]
  • use_sticky_comment feature broken (it looks for claude[bot] comments)
  • Manual gh pr comment approach was unreliable

Changes

  • Remove github_token override — Claude uses its own app auth (claude[bot])
  • Enable use_sticky_comment: true for single updatable PR comment
  • Add id-token: write permission (required for OIDC token exchange)
  • Change pull-requests: readpull-requests: write
  • Remove manual comment posting instructions and cleanup step
  • Simplify allowed tools to only what's needed for review

Important

This must be merged to main before other PRs (like #44) can use the updated workflow, due to GitHub's workflow validation requiring the workflow file to match the default branch.

- Remove github_token override so Claude uses its own app auth (claude[bot])
- Enable use_sticky_comment for single updatable PR comment
- Add id-token: write and pull-requests: write permissions
- Remove manual gh pr comment instructions and cleanup step
- Simplify allowed tools to only what's needed for review
@liobrasil liobrasil merged commit ee52858 into main Feb 9, 2026
2 of 4 checks passed
@liobrasil liobrasil deleted the fix/claude-review-auth branch February 9, 2026 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant