Bitbucket (Server) CI: PR Gating via Aikido Dashboard with a Workspace Access Token
Introduction
You can easily configure Bitbucket PR Gating via the Aikido interface. This doc focusses on managing configurations in bulk - multiple repos at the same time - without code.
Creating a Workspace Access Token
Bitbucket supports creating Workspace Access Tokens for their Premium plan.
Navigate to the workspace settings > Access tokens
Select the "Create access token" option to start creating a token.
On the next screen add a descriptive name for the token like "Aikido Security CI Checks", and select following scopes:
Click "Create"
In the following step, you can copy the access token
Setting up Bitbucket CI
Step 1. Enter the token from the previous part into the input field on this page, together with the email address of the user in Bitbucket who created the token and click "Update token"

Step 2. Aikido redirects you to the Bitbucket CI page with an overview of your repos. You can start configuring your repos. We recommend starting out with 1 repo to make sure everything works well. Step 3. Select repos in bulk and click Setup PR Scans button in the floating bulk actions bar on the bottom.
Step 4.This will trigger the modal to choose the severity level for failure and the scans you want to execute.
Adding Exceptions for specific repos
You might want to have 1 specific repo where the configuration slightly differs. You can easily add exceptions by clicking the triple dots on a repo item or just select 1 or more items and go through the Configure Scans process again.
Last updated
Was this helpful?