Documentation

Bitbucket Cloud

Scan pull requests on Bitbucket using repository webhooks and an API token.

1. Create a Bitbucket access token

Create a repository or workspace access token with permissions to read source, pull requests, and create build statuses / comments.

Set BITBUCKET_ACCESS_TOKEN on the API service.

2. Webhook

Repository settings → Webhooks → Add webhook pointing to {API_URL}/api/webhook/bitbucket

  • Triggers: Pull Request Created, Updated
  • Secret → BITBUCKET_WEBHOOK_SECRET
3. Register the repo in Meerkat

From Installations, add a Bitbucket installation with platform bitbucket, the repository UUID as installation id, and full name workspace/repo.

Open installations