nunbit
EN · Language / 언어

Create a GitHub token — connect nunbit with a fine-grained token

For nunbit to see issues and PRs in your repos and turn them into to-dos, it needs one GitHub fine-grained token. It takes about five minutes.

A fine-grained token is a key that opens only the repos and permissions you pick. It is safer than a classic token (ghp_…), which opens your whole account, so nunbit accepts only fine-grained tokens (github_pat_…).

The key point: turn on only four permissions — Contents read · Issues read and write · Pull requests read and write · Metadata read (automatic). Leave everything else at No access.

1. Open the token page

Sign in to GitHub, then profile picture (top right) → Settings → Developer settings (bottom of the left menu) → Personal access tokens → Fine-grained tokens → [Generate new token]. Direct link: github.com/settings/personal-access-tokens/new

In nunbit: on the GitHub card in the app's connections screen (app.nunbit.ai/#connections), [Create a token on GitHub] opens this page directly.

It is easier on a computer browser than on a phone.

2. Name, expiry and owner

Give it a name you will recognise (for example nunbit) in Token name. For Expiration we suggest 90 days. Resource owner is who owns the repos — your account for personal repos, or the organization for company repos.

In nunbit: when the token expires, the GitHub card asks you to reconnect. Create a new token and paste it with [Replace with a new token]; linked repos stay as they are.

If you pick an organization, its settings may require an admin's approval. Until it is approved (Pending), that organization's repos can't be read.

3. Pick repos (Repository access)

Choose Only select repositories and tick just the repos nunbit should see. If you want to link all your repos, All repositories is fine too.

In nunbit: [Also link new repos automatically] on the connections screen only works within the repos the token can see. To link new repos automatically, create the token with All repositories.

Example: only the company repos web and api → tick those two under Only select repositories.

4. Turn on four permissions only (Repository permissions)

Under Repository permissions set Contents: Read-only · Issues: Read and write · Pull requests: Read and write. Metadata: Read-only turns on by itself. Leave every other permission, including Account permissions, at No access.

In nunbit: it reads repos, issues, PRs and review requests, and creates, comments on, closes or reopens an issue only when you approve the confirmation card in chat. It never merges, pushes or deletes.

If you see an [Add permissions] button, use it to find and add the three above, then pick the level.

5. Create it and paste it into nunbit

Press [Generate token] at the bottom. A token starting with github_pat_ appears. You can't see it again after leaving the page, so copy it right away.

In nunbit: paste it into the token field on the GitHub card in the connections screen and press [Connect]. A sheet to pick the repos to link opens right away. Each linked repo becomes a project and its open issues and PRs come in as to-dos.

Don't send the token in chat — paste it only on the connections screen.

If something doesn't work

  • “Only fine-grained tokens” — that is a classic token starting with ghp_. Create a new one under Fine-grained tokens from step 1.
  • A repo is missing — check that you ticked it in step 3, that Resource owner is that organization for organization repos, and that an admin has approved the token.
  • Creating issues or commenting fails — check that Issues is Read and write in step 4. You can change permissions later on GitHub's token page.
  • GitHub Notifications list — fine-grained tokens can't read it. Instead nunbit shows what is assigned to you, review requests and mentions through search.

Using it safely

  • nunbit stores the token encrypted and shows only your GitHub login and the token's last four characters.
  • To stop, disconnect GitHub on the connections screen and also [Delete] the token on GitHub's token page.
  • If you think the token leaked, delete it on GitHub right away and make a new one — a deleted token stops working at once.

You can connect GitHub on any plan. Once connected, everything uses the same token.

GitHub menu names and places are as of November 2026. If GitHub changes its screens, names may differ slightly.

Open nunbit connections →