mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-11 20:05:25 +00:00
* initial ado pol * add support for ado logo * default to main instead of HEAD when generating file url * bump zoekt * fix(web) Fix "At least one project, user, or group must be specified" for GitLab configs in web configurator (#512) * feat(ask_sb): Fallback on fromNodeProviderChain if access key or sessionToken are not provided (#513) * Quote branches argument in zoekt.ts to fix Pipe (#506) * remove connections settings page * fix styling and remove additional components * add changelog * add docs * fix build error * bump zoekt * fix broken links for ado docs * fix HEAD support for ado * changelog --------- Co-authored-by: Brendan Kellam <bshizzle1234@gmail.com> Co-authored-by: Michael Dekoski <michaeldekoski@gmail.com>
46 lines
No EOL
1.2 KiB
Text
46 lines
No EOL
1.2 KiB
Text
<Tabs>
|
|
<Tab title="Environment Variable">
|
|
|
|
1. Add the `token` property to your connection config:
|
|
```json
|
|
{
|
|
"type": "bitbucket",
|
|
"token": {
|
|
// note: this env var can be named anything. It
|
|
// doesn't need to be `BITBUCKET_TOKEN`.
|
|
"env": "BITBUCKET_TOKEN"
|
|
}
|
|
// .. rest of config ..
|
|
}
|
|
```
|
|
|
|
2. Pass this environment variable each time you run Sourcebot:
|
|
```bash
|
|
docker run \
|
|
-e BITBUCKET_TOKEN=<PAT> \
|
|
/* additional args */ \
|
|
ghcr.io/sourcebot-dev/sourcebot:latest
|
|
```
|
|
</Tab>
|
|
|
|
<Tab title="Secret">
|
|
<Note>Secrets are only supported when [authentication](/docs/configuration/auth/overview) is enabled.</Note>
|
|
|
|
1. Navigate to **Secrets** in settings and create a new secret with your PAT:
|
|
|
|

|
|
|
|
2. Add the `token` property to your connection config:
|
|
|
|
```json
|
|
{
|
|
"type": "bitbucket",
|
|
"token": {
|
|
"secret": "mysecret"
|
|
}
|
|
// .. rest of config ..
|
|
}
|
|
```
|
|
|
|
</Tab>
|
|
</Tabs> |