Lesstep
GitHub · personal access tokens · Checked November 22, 2026

GitHub token permissions for reviewing and merging pull requests

For a fine-grained token, give the repositories you work in Pull requests (read and write), Contents (read and write, needed to merge), Commit statuses (read) and Actions (read). Metadata is listed with read as its only level. For a classic token, tick the repo scope. Reading only needs the read levels. A fine-grained personal access token has no Checks permission: GitHub documents the check-runs endpoints for GitHub App tokens only.

Fine-grained token: permission per action

From GitHub's Permissions required for fine-grained personal access tokens:

What you doEndpointPermission
List pull requestsGET /repos/{owner}/{repo}/pullsPull requests: read
Approve, request changes, reviewPOST /repos/{owner}/{repo}/pulls/{pull_number}/reviewsPull requests: write
Comment on a line of the diffPOST /repos/{owner}/{repo}/pulls/{pull_number}/commentsPull requests: write
Update the branchPUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branchPull requests: write
Request reviewersPOST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewersPull requests: write
Merge a pull requestPUT /repos/{owner}/{repo}/pulls/{pull_number}/mergeContents: write
Read commit statusGET /repos/{owner}/{repo}/commits/{ref}/statusCommit statuses: read
List workflow runsGET /repos/{owner}/{repo}/actions/runsActions: read

Merging needs Contents, not Pull requests. That is the usual reason a token that can approve still cannot merge.

If you review pull requests inside a JetBrains IDE: Pull Request Inbox for GitHub asks for exactly this token and keeps it in the IDE password safe.

Checks: not available to a personal access token

GitHub's check runs documentation lists the "Checks" repository permission (read) for "List check runs for a Git reference" and "Get a check run", but only for GitHub App user and installation access tokens. The fine-grained personal access token permission list has no Checks section. With a token you create yourself, read results through Commit statuses and Actions. The same page says a classic token needs the repo scope to use the list endpoint on a private repository.

Classic token

From GitHub's Scopes for OAuth apps: repo grants full access to public and private repositories, including read and write access to code and commit statuses. public_repo limits access to public repositories. A classic token cannot be limited to chosen repositories, so a fine-grained one is the smaller grant.

Create the token

On GitHub: click your profile picture, then Settings, then Developer settings. Under Personal access tokens click Fine-grained tokens, then Generate new token. For a classic token click Tokens (classic), then Generate new token, then Generate new token (classic). Under Repository access choose Only select repositories. GitHub notes that tokens always include read-only access to all public repositories.

GitHub can pre-fill the form from URL parameters (Managing your personal access tokens). The names are name (up to 40 characters), description, target_name (a user or organization), expires_in (1 to 366 days, or none) and the permission names set to read or write. One ready URL for a review-and-merge token:

https://github.com/settings/personal-access-tokens/new?name=PR+review&description=Review+and+merge+pull+requests&expires_in=90&pull_requests=write&contents=write&statuses=read&actions=read&metadata=read

It does not choose the repositories. Pick them on the page. To read only, change pull_requests=write&contents=write to pull_requests=read&contents=read. To create the token for an organization, add &target_name=ORG.

Organization rules

What a wrong choice looks like

In Pull Request Inbox for GitHub

The plugin's settings ask for a fine-grained token with Pull requests and Contents read and write and Commit statuses read, for the repositories you choose, to approve, comment and merge. Read access alone only reads. Add Actions read to see GitHub Actions checks. Or use a classic token with the repo scope. Public repositories can be read without a token (60 requests an hour; 5,000 with one). The token is kept in the IDE password safe and sent only to its own host.

Free: review inbox, diffs, viewed marks, conversations, merge checks and checks. Pro (US$1.50 a month, with a 30-day trial): approve, comment, merge. IDE versions 2024.1 or later. Get it on JetBrains Marketplace

GitHub is a trademark of GitHub, Inc.; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with or endorsed by GitHub, Inc. or JetBrains.

More: Resource not accessible by personal access token · Bad credentials · SAML enforcement · Not Found · Checks not shown · API rate limit exceeded · 日本語