Infisical supports the use of API Tokens to connect with Bitbucket.

Infisical recommends creating a dedicated Bitbucket account with access restricted to only the resources your use case requires.

Create Bitbucket Access Token

1

Create API Token

Go to Account API Tokens and click Create API token with scopes.

Create API Token

2

Set Name and Expiry

Set the name and expiration date of the token, then click Next.

Set Name and Expiry

Keep in mind that you’ll need to manually replace the token after it expires.

3

Select Bitbucket

Select Bitbucket and then click Next.

Select Bitbucket

4

Configure Permissions

Configure permissions according to your app’s use case:

read:workspace:bitbucket
read:user:bitbucket
read:webhook:bitbucket
write:webhook:bitbucket
delete:webhook:bitbucket
read:repository:bitbucket

Configure Permissions

Click Next.

5

Copy Token

Save the API Token for later steps.

Save Token

Create Bitbucket Connection in Infisical

1

Navigate to App Connections

In your Infisical dashboard, go to Organization Settings and select the App Connections tab.

App Connections Tab

2

Select Bitbucket Connection

Click the Add new connection button and select Bitbucket from the list of available connections.

3

Fill out the Bitbucket Connection Modal

Complete the Bitbucket Connection form by entering:

  • A descriptive name for the connection
  • An optional description for future reference
  • Your Bitbucket email
  • The API Token from earlier steps

Bitbucket Connection Modal

4

Connection Created

After clicking Create, your Bitbucket Connection is established and ready to use with your Infisical projects.

Bitbucket Connection Created