If you’re not familiar with Sourcebot connections, please read that overview first.

Examples

Authenticating with Azure Devops Cloud

Azure Devops Cloud requires you to provide a PAT in order to index your repositories. To learn how to create PAT, check out the Azure Devops docs. Sourcebot needs the Read access for the Code scope in order to find and clone your repos. Next, provide the access token via the token property, either as an environment variable or a secret:
  1. Add the token property to your connection config:
{
    "type": "azuredevops",
    "token": {
        // note: this env var can be named anything. It
        // doesn't need to be `ADO_TOKEN`.
        "env": "ADO_TOKEN"
    }
    // .. rest of config ..
}
  1. Pass this environment variable each time you run Sourcebot:
docker run \
    -e ADO_TOKEN=<PAT> \
    /* additional args */ \
    ghcr.io/sourcebot-dev/sourcebot:latest

Schema reference