Skip to Content
IntegrationsBitbucket

Bitbucket Integration

CodeStax integrates with Bitbucket Cloud for repository scanning, PR reviews, and automated security checks.

Connecting Bitbucket

During Signup

Click Continue with Bitbucket on the signup page. This authorizes CodeStax and connects your Bitbucket account automatically.

After Signup

  1. Go to Settings on the dashboard
  2. Click Connect Bitbucket
  3. Authorize CodeStax in the Bitbucket OAuth consent screen

Permissions

CodeStax requests the following Bitbucket scopes:

ScopePurpose
accountRead your Bitbucket profile
repositoryRead repository contents for scanning
emailAccess your email for notifications

Features

Repository Import

Import repositories from any Bitbucket workspace you have access to. CodeStax shows all available repositories with search and multi-select.

PR Reviews

Bitbucket webhook integration triggers automatic security reviews on pull requests:

  • Analyzes diff for vulnerabilities
  • Assigns risk score
  • Records findings

Token Refresh

Bitbucket OAuth tokens expire regularly. CodeStax automatically refreshes tokens using the OAuth2 refresh_token flow, so your scans and reviews continue working without manual intervention.

Supported Bitbucket Features

FeatureStatus
Repository importSupported
Private repo scanningSupported
PR reviewsSupported
Auto-scan on pushSupported
Webhook integrationSupported
Bitbucket Server (self-hosted)Coming soon