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 variables are only supported in a declarative config and cannot be used in the web UI.
- Add the
token
property 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