Skip to main content
The Bitbucket integration with Corgea enables you to scan projects and create pull requests for code fixes directly from the Corgea platform.
1

Create a Dedicated User for Corgea (Optional)

While not required, we recommend creating a dedicated Bitbucket user account for Corgea integration. This helps distinguish Corgea’s automated actions from your personal account activity and provides better auditability.
Create Bitbucket User
2

Generate an API Access Token

Navigate to the Atlassian API Tokens page and click “Create API token with scopes” to begin.
Create API Token
Provide a descriptive name for your token and set the expiration date to one year from today. This ensures the token remains valid for an extended period while maintaining security best practices.
Token Name and Expiration
Select Bitbucket from the applications list to grant Bitbucket access to this token.
Select Bitbucket App
Configure the required scopes for Corgea integration. Enable the following scopes:
Token Scopes
Review your configuration and click “Create token” to generate the access token.
Create Token
After the token is created, click the copy button to copy the token value. You’ll need this token in the next step, and it won’t be displayed again.
Copy Token
3

Configure Bitbucket Integration in Corgea

Access your Corgea dashboard at corgea.app or {your-instance}.corgea.app and navigate to the Integrations page using the sidebar or integrations link.
Corgea Integrations Page
In the “Code Repository Integrations” section, locate Bitbucket and click the plus (+) icon to create a new integration.
New Integration
Complete the integration form with the following information:
  • Workspace slug: Your Bitbucket workspace identifier
  • Email address: The email associated with the Bitbucket account used to generate the API token
  • Access token: The API token you copied in the previous step
  • Integration name (optional): A custom name to identify this integration if you manage multiple Bitbucket workspaces
Create Integration Modal
Corgea validates your credentials automatically. If any information is incorrect, you’ll receive an error message with details about what needs to be corrected.
Validation
Upon successful validation, you’ll see a confirmation message indicating that the integration is complete. Webhooks are automatically configured during this process, so no manual webhook setup is required. You can view the integration details, including webhook status, from the integrations page.
Success Message