You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
resolveReviewThread requires contents:write — pull_requests:write alone is insufficient for GitHub App installation tokens #35726
The resolveReviewThread GraphQL mutation returns Resource not accessible by integration (FORBIDDEN) for GitHub App installation tokens that have pull_requests: write but only contents: read. Adding contents: write to the token's permission set makes the mutation succeed.
This is reproducible with the following token permission sets:
gh api graphql -f query='mutation($threadId:ID!){resolveReviewThread(input:{threadId:$threadId}){thread{isResolved}}}' -f threadId=<thread-id>
Result:
{"data":{"resolveReviewThread":null},"errors":[{"type":"FORBIDDEN","message":"Resource not accessible by integration"}]}
Bumping contents to write makes it succeed.
Why this looks like a bug
resolveReviewThread is a pull request review action with no logical relationship to repository file contents. The correct permission to gate this mutation should be pull_requests: write only. The contents permission controls read/write access to files, trees, and blobs — not review thread state.
Related
Similar symptom (FORBIDDEN on resolveReviewThread with pull-requests: write) was reported in #33137, where the root cause was attributed to bot identity restrictions. The contents: write requirement identified here is a separate, more specific finding.
The Pull Requests team has indicated this is likely intentional (at least at the time it was added), as the rationale was that resolving a thread should align with merge-level permissions (repo write access), not just PR metadata permissions, because it signals "this concern is addressed" which is a gatekeeping action. They said however it may be worth revisiting in the context of Apps and fine-grained permissions. Nothing further at this time.
@zarenner I think there's a useful distinction to draw here. A GitHub App usually doesn't need to resolve review threads in general, or approve anything. It only needs to dismiss or resolve the review comments it posted itself.
Take a PR review bot that posts findings as inline code comments. When the PR author pushes new commits that fix those findings, the bot should be able to clean up its own outdated comments automatically. Today that only works if the bot also gets contents: write. That's far more access than a bot that only reviews should have, since it could then push code to the repository.
Could resolving or dismissing your own review threads be gated by pull_requests: write alone, with broader thread resolution kept behind stronger permissions?
@zarenner I think there's a useful distinction to draw here. A GitHub App usually doesn't need to resolve review threads in general, or approve anything. It only needs to dismiss or resolve the review comments it posted itself.
Take a PR review bot that posts findings as inline code comments. When the PR author pushes new commits that fix those findings, the bot should be able to clean up its own outdated comments automatically. Today that only works if the bot also gets contents: write. That's far more access than a bot that only reviews should have, since it could then push code to the repository.
Could resolving or dismissing your own review threads be gated by pull_requests: write alone, with broader thread resolution kept behind stronger permissions?
Same exact concern in regard to Review bots. They can mark the comments as outdated but cannot resolve those threads. It becomes a bit of busywork to the have to resolve those threads automatically if repo has "Require conversation resolution before merging"
Activity
zarenner commentedon Jun 12, 2026
The Pull Requests team has indicated this is likely intentional (at least at the time it was added), as
the rationale was that resolving a thread should align with merge-level permissions (repo write access), not just PR metadata permissions, because it signals "this concern is addressed" which is a gatekeeping action. They said however it may be worth revisiting in the context of Apps and fine-grained permissions. Nothing further at this time.muhqu commentedon Nov 10, 2026
@zarenner I think there's a useful distinction to draw here. A GitHub App usually doesn't need to resolve review threads in general, or approve anything. It only needs to dismiss or resolve the review comments it posted itself.
Take a PR review bot that posts findings as inline code comments. When the PR author pushes new commits that fix those findings, the bot should be able to clean up its own outdated comments automatically. Today that only works if the bot also gets
contents: write. That's far more access than a bot that only reviews should have, since it could then push code to the repository.Could resolving or dismissing your own review threads be gated by
pull_requests: writealone, with broader thread resolution kept behind stronger permissions?tl-carlos-rosa commentedon Nov 10, 2026
Same exact concern in regard to Review bots. They can mark the comments as outdated but cannot resolve those threads. It becomes a bit of busywork to the have to resolve those threads automatically if repo has "Require conversation resolution before merging"
fix(claude): what resolution needs, what a no-op push costs, and who …
fix(claude): the reviewer's identity, its tier, and a resolution it m…
fix(claude): grant the one permission resolving a thread actually nee…
feat(SEM-130): incremental review, auto-resolve, @k2so resolve (#5)