CostLensConnect Bitbucket Cloud

Connect Bitbucket Cloud

Connect a Bitbucket Cloud repository so alerts arrive as issues.

Updated November 20261 min read

Before you start

Bitbucket delivers alerts as issues, so the repository's Issue tracker must be turned on (Repository settings → Features). Terraform pull requests are not available on Bitbucket.

Connect

  1. Go to Settings → Integrations and click Connect on the Bitbucket card.
  2. Enter the repository as workspace/repository.
  3. Paste a repository access token, or, if you still use one, an app password together with your Atlassian username. Click Connect.

Token scopes

Create the repository access token with the Repositories: Read and Issues: Read and Write scopes. If the token is valid but its scopes are too narrow, Test says so and asks you to recreate it with the right scopes.

Bitbucket Server

Only Bitbucket Cloud is supported. Bitbucket Server and Data Center are not.

Test, edit and disconnect

  • Test is read-only and confirms access without creating anything.
  • Edit changes the repository or rotates the token.
  • Disconnect removes the connection and its stored token. It does not delete issues CostLens already created.

See Git Integration for what is delivered and how failures are handled.

CostLens
Previous
GitLab
CostLens
Next
Azure DevOps