Skip to main content

Bitbucket

Configure Connector​

Integrating StackGuardian with Bitbucket allows for seamless policy enforcement and scanning of structured configurations in your Bitbucket repositories. To set up the integration, you will need to obtain an integration name and app password from Bitbucket. This document provides step-by-step instructions on how to configure the integration.

Create App Password​

To integrate Bitbucket, you first need to create an App Password in Bitbucket with limited permissions. Here's how you can create one:

  1. On Bitbucket, go to the Settings in the upper-right corner of the top navigation bar.
  2. Under Personal Settings, select Personal Bitbucket settings.
  3. On the left sidebar, select App passwords.
  4. Click on Create app password.
  5. Provide a label for the app password, typically related to the app or task using it.
  6. Under Permissions, select the following:
    • Account: Read
    • Projects: Read

Permissions

  1. Click Create to generate the new app password.
  2. Copy the generated password and securely store it. You won’t be able to view it again.

Bitbucket App Password Creation

Connector on StackGuardian Platform​

To complete the connector visit the platform and follow these steps:

  1. Go to the "Connectors > Version Control Providers" tab in the StackGuardian Orchestrator.
  2. Click on "Connect to Bitbucket."
  3. Enter an Connector name and your Bitbucket username.
  4. In the "Bitbucket Personal Access Token or App Password" field, paste the App Password created earlier.
  5. Click "Create" to finalize the connector.

Bitbucket Connector