Skip to main content
Vidoc connects to Bitbucket with an access token. Vidoc does not create Bitbucket webhooks. You create one webhook in each repository by hand. On Bitbucket, Vidoc can:
  • Review each pull request (PR) and write a summary comment and inline comments.
  • Resolve its own comment threads when a later scan shows that the issue is fixed.
  • Show a build status, when status reporting is on.
  • Collect 👍/👎 reactions on its inline comments (Bitbucket Data Center 7.21 and later only).
Vidoc does not read PR comments on Bitbucket. Commands, questions, “remember” requests, and replies to findings do not work. Use the Vidoc web app to change the status of a finding and to give feedback. For a comparison with other platforms, refer to Supported platforms.

Requirements

Vidoc supports Bitbucket Cloud and Bitbucket Data Center. One Vidoc installation connects to one Bitbucket type only: Bitbucket Cloud or Bitbucket Data Center.
Vidoc Cloud does not support Bitbucket. The Bitbucket card on the Integrations page shows Not available in this deployment. To use Bitbucket, use a self-hosted installation. Refer to Deployment options.

Prepare a token

Bitbucket Cloud

Use a scoped Atlassian API token or a workspace access token. App passwords were disabled on June 9, 2026. Replace an old app password before you connect. Refer to Atlassian’s app password notice. The token must cover every repository you import. The repository permission covers code access and build statuses. Bitbucket Cloud’s pull request Read permission also permits creating, editing, and resolving comments. Vidoc does not create webhooks, so create them separately with an account that can manage repository webhooks. For token creation and scope details, refer to API token permissions, API token authentication, and workspace token permissions. Atlassian documents the required scopes for build statuses and PR comments.

Bitbucket Data Center

Use an HTTP access token with Project read and Repository write permissions for repository access and PR actions. For a user token, set Username to the token owner’s Bitbucket username; Git Username can stay empty. For a project token, leave Username empty and set Git Username to x-token-auth. Refer to Atlassian’s HTTP access token guide for your Bitbucket version.

Connect Bitbucket

You must have the Admin role in Vidoc.
1

Open the Bitbucket connection

In the web app, open the account menu and select Integrations. On the Bitbucket card, click Connect. If Bitbucket is already connected, click the card, then click Add connection.
2

Fill in the connection form

In Configure Bitbucket, fill in these fields:
3

Test and save the connection

Click Test Connection. Vidoc checks whether it can list repositories with the Bitbucket API. This test does not verify Git clone access or PR comment permissions. Save Bitbucket Connection stays disabled until the test passes. Then click Save Bitbucket Connection.
4

Import repositories

In Import Bitbucket repositories, select the repositories to add to the current project. Click Import selected repositories.
5

Create the webhook in each repository

  1. Open Integrations > Bitbucket. Open the actions menu of the Bitbucket account and select Configure webhook.
  2. The Configure Bitbucket webhook dialog shows the Webhook URL, the Secret, and the Events. Use the copy buttons.
  3. In Bitbucket, open the repository settings and create a webhook with the name Vidoc Security.
  4. Paste the URL and the secret. Turn on all the events that the dialog shows.
Repeat this step for each imported repository. If a repository has no webhook, Vidoc does not scan its PRs.
The dialog shows these events: The copy button of the Events field copies the event names for your Bitbucket type.

Import more repositories later

  1. Open Integrations > Bitbucket.
  2. Open the actions menu of the Bitbucket account and select Import repositories.
  3. Create the webhook in each new repository.

Turn on PR reviews for repositories

Open Repositories in the web app. Turn on the PR reviews toggle for each repository to scan. You must have the Developer role or higher. When you turn on PR reviews:
  • Vidoc indexes the default branch of the repository and then runs a first full scan of the default branch. Refer to Scan types.
  • Vidoc does not create the webhook. Make sure that each repository has the webhook from Connect Bitbucket.
  • Vidoc then reviews each new PR and each update to a PR.
The PR comments toggle is in the actions menu of each repository. When it is off, Vidoc still scans PRs, but it does not write to Bitbucket. For all repository controls, refer to Repositories.

Bitbucket specifics

Update credentials

Replace the token before it expires, or after you rotate it in Bitbucket:
  1. Open Integrations > Bitbucket.
  2. Open the actions menu of the Bitbucket account and select Edit.
  3. Paste the new token in PAT. If you keep the field empty, Vidoc keeps the saved token.
  4. Click Test Connection, then click Save Bitbucket Connection.

Troubleshooting