Skip to main content
Connect a Bitbucket Cloud workspace to map its repositories and their dependencies, and let agents inspect your code and propose fixes.

What agents can access

The Antigen app gets read and write access to every repository in the workspace you connect. Bitbucket has no way to limit an app to selected repositories, so connect a workspace that contains only the code you want agents to reach. Your team reviews proposed code changes through its normal pull request process. See Connecting your codebase for how repository access supports remediation.

Before you connect

  • You must be an organization admin in Antigen and an admin of the Bitbucket workspace.
  • The workspace must be on Bitbucket Cloud and belong to an Atlassian organization.
  • An Antigen organization can connect as many Bitbucket workspaces as you administer, but each workspace can be connected to only one Antigen organization.

Connect Bitbucket

1. Sign in

Open Settings → Integrations → Bitbucket and choose Connect Bitbucket. Sign in with Bitbucket when asked. Antigen uses this once to confirm which workspaces you administer, and does not keep your Bitbucket access.

2. Install the app

Choose the workspace and install the Antigen app. Antigen shows the workspace as connected once Bitbucket confirms the installation.

3. Check the sync

Antigen syncs the workspace into your Asset Map as soon as it connects. The Bitbucket panel shows how many repositories the last sync found.

Connect more workspaces

  1. Open Settings → Integrations → Bitbucket and choose Add another workspace.
  2. Sign in with Bitbucket, then install the Antigen app in the next workspace.
Each workspace syncs on its own and appears in the Bitbucket panel with its own Check connection and Sync now.

Keep the Asset Map current

Antigen syncs again when a repository is created, updated, or deleted. To pick up dependency changes after a commit, choose Sync now on the workspace in Settings → Integrations → Bitbucket.

Disconnect

Uninstall the Antigen app from the workspace’s settings in Bitbucket. Open in Bitbucket in the Bitbucket panel takes you there. Antigen drops its stored access to the workspace. Its repositories stay in your Asset Map until another connected workspace syncs.

Track human tasks

Bitbucket is not used for human tasks. Connect Jira or another tool to assign them.

Troubleshooting

You can’t see a workspace when connecting

Check that you are an admin of the workspace and that it belongs to an Atlassian organization.

A repository has no dependencies in the Asset Map

Antigen reads dependencies from the lockfiles on each repository’s default branch. A repository without a lockfile is shown with unknown dependencies. Commit a lockfile, then choose Sync now.

The last sync failed

Choose Sync now to try again. If it keeps failing, choose Check connection to confirm the app is still installed and its access still works.