Index integration for GitHub
Connect your GitHub account to Index using a Personal Access Token
Overview
Index supports connecting to GitHub via a Personal Access Token (PAT). Once connected, Index can access your repositories to enable codebase-related features.
Generating a Personal Access Token
To connect GitHub, you will need a Personal Access Token:
- Go to github.com/settings/tokens
- Click Generate new token (classic)
- Give the token a descriptive name (e.g. "Index")
- Select the repo scope (full control of private repositories)
- Click Generate token
- Copy the token — you will not be able to see it again
Set up
To connect GitHub in Index:
- Go to Settings via the top left of the Index app
- Select Codebase from the sidebar
- Click on GitHub
- Paste your Personal Access Token into the token field
- Click Save
Once saved, a green checkmark will appear confirming the connection is active.
Disconnecting
To disconnect the GitHub integration:
- Go to Settings > Codebase > GitHub
- Click Disconnect
This will remove the stored token. You can reconnect at any time by entering a new token.
Troubleshooting
- Token not saving: Ensure the token starts with
ghp_(classic tokens) orgithub_pat_(fine-grained tokens) and has the requiredreposcope. - Permission errors: Verify that the token has not expired and that the
reposcope is selected. - Need to rotate a token: Disconnect the existing integration and reconnect with a new token.