Sourcebot can sync code from GitHub.com, GitHub Enterprise Server, and GitHub Enterprise Cloud. If you’re not familiar with Sourcebot connections, please read that overview first.Documentation Index
Fetch the complete documentation index at: https://sourcebot-msukkarieh-ado.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Examples
Sync individual repos
Sync individual repos
Sync all repos in a organization
Sync all repos in a organization
Sync all repos owned by a user
Sync all repos owned by a user
Filter repos by topic
Filter repos by topic
Exclude repos from syncing
Exclude repos from syncing
Authenticating with GitHub
In order to index private repositories, you’ll need to generate a access token and provide it to Sourcebot. GitHub provides two types of access tokens:Fine-grained personal access tokens
Fine-grained personal access tokens
Create a new fine-grained PAT here. First, select the resource owner and the repositories that you want Sourcebot to have access to.Next, under “Repository permissions”, select permissions 
GitHub docs
Contents and Metadata with access Read-only. The permissions should look like the following:
Personal access tokens (classic)
Personal access tokens (classic)
token property, either as an environment variable or a secret:
- Environment Variable
- Secret
- Add the
tokenproperty to your connection config:
- Pass this environment variable each time you run Sourcebot:
Connecting to a custom GitHub host
To connect to a GitHub host other thangithub.com, provide the url property to your config:
Schema reference
Reference
Reference



