+
Bitbucket Cloud
+
+Generate an API key [here](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/). At a minimum, you'll need to select the `read:repository` scope, but `read:user` and `read:organization` are required for the `user` and `org` fields of your config file:
+
+
+
+Next, update your configuration with the `token` field:
+```json
+{
+ "$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v2/index.json",
+ "repos": [
+ {
+ "type": "bitbucket",
+ "user": "bitbucket-user",
+ "token": "my-secret-token",
+ ...
+ }
+ ]
+}
+```
+
+You can also pass tokens as environment variables:
+```json
+{
+ "$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v2/index.json",
+ "repos": [
+ {
+ "type": "bitbucket",
+ "user": "bitbucket-user",
+ "token": {
+ // note: this env var can be named anything. It
+ // doesn't need to be `BITBUCKET_TOKEN`.
+ "env": "BITBUCKET_TOKEN"
+ },
+ ...
+ }
+ ]
+}
+```
+
+You'll need to pass this environment variable each time you run Sourcebot:
+
+
+docker run -e BITBUCKET_TOKEN=my-secret-token /* additional args */ ghcr.io/sourcebot-dev/sourcebot:latest
+
+
+
+
+