Examples
Sync individual projects
Sync individual projects
Sync all projects in a group/subgroup
Sync all projects in a group/subgroup
Sync all projects in a self managed instance
Sync all projects in a self managed instance
This option is ignored if
url
is unset. See connecting to a custom gitlab host.Sync all projects owned by a user
Sync all projects owned by a user
Filter projects by topic
Filter projects by topic
Exclude projects from syncing
Exclude projects from syncing
Authenticating with GitLab
In order to index private projects, you’ll need to generate a GitLab Personal Access Token (PAT). Create a new PAT here and make sure you select theread_api
scope:

token
property, either as an environment variable or a secret:
- Environment Variable
- 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 GitLab host
To connect to a GitLab host other thangitlab.com
, provide the url
property to your config:
Troubleshooting
- If you’re seeing errors like
GitbeakerTimeoutError: Query timeout was reached
when syncing a large number of projects, you can increase the client’s timeout by setting theGITLAB_CLIENT_QUERY_TIMEOUT_SECONDS
environment variable. #162
Schema reference
Reference
Reference