Skip to content

ci: run pr-review under the CI app identity - #95

Merged
Troublor merged 1 commit into
mainfrom
williamaaroncheung/ci/pr-review-identity-token
Jul 28, 2026
Merged

ci: run pr-review under the CI app identity#95
Troublor merged 1 commit into
mainfrom
williamaaroncheung/ci/pr-review-identity-token

Conversation

@Troublor

Copy link
Copy Markdown
Collaborator

Summary

  • Mint a CI app token in the pr-review job and pass it to the action as github_identity_token.

The claude-pr-review action gates review-thread resolution on github_identity_token being non-empty. With only the job token, the action publishes reviews and updates the sticky status, but every addressed automated thread stays open — the author fixes the code and the thread never closes.

Also checks out under the app identity with persist-credentials: false, matching the pattern already in use in stateless-validator.

Test plan

  • Note this repo self-skips pr-review on any PR that touches .github/workflows/claude.yml, so this PR does not exercise the change. Verification happens on the next unrelated PR: the app-token step must succeed, and an addressed automated thread must end up resolved.
  • A failing app-token step means the CI app is not installed on this repo or the org secret is not scoped to it.

The shared pr-review action gates review-thread resolution on
github_identity_token being non-empty; without it the job token publishes the
review but addressed automated threads are left unresolved. Mint the CI app
token and pass it through, matching stateless-validator.

@flyq flyq left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@Troublor
Troublor merged commit fe0cdcf into main Jul 28, 2026
5 checks passed
@Troublor
Troublor deleted the williamaaroncheung/ci/pr-review-identity-token branch July 28, 2026 07:47
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.

2 participants