> ## Documentation Index
> Fetch the complete documentation index at: https://infisical.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Bitbucket secret scanning

> Scan the repositories in a Bitbucket workspace.

To scan your Bitbucket repositories for leaked secrets, create a Bitbucket [data source](https://infisical.com/docs/documentation/platform/secret-scanning/scan-repositories.md) in Infisical.

## Prerequisites

* A [Bitbucket Connection](https://infisical.com/docs/integrations/app-connections/bitbucket.md) with secret scanning permissions

## Create a Bitbucket data source in Infisical

**Step 1**

Go to **Secret Scanning** > **Data Sources** and select **Add Data Source**.

![Secret Scanning Dashboard](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/platform/secret-scanning/github/github-data-source-step-1.png)

**Step 2**

Select **Bitbucket**.

![Select Bitbucket](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/platform/secret-scanning/bitbucket/step-2.png)

**Step 3**

Select the connection to use, the workspace, and the repositories to scan, then select **Next**.

![Data Source Configuration](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/platform/secret-scanning/bitbucket/step-3.png)

* **Bitbucket Connection**: The connection that can access the repositories you want to scan
* **Workspace**: The Bitbucket workspace that contains the repositories
* **Scan Repositories**: Which of the workspace's repositories Infisical scans
  * **All Repositories**: Every repository in the workspace that the connection can access
  * **Select Repositories**: Only the repositories you select in **Include Repositories**
* **Auto-Scan Enabled**: Whether Infisical scans each new push to the repositories

**Step 4**

Enter a name and, optionally, a description for the data source, then select **Next**.

![Data Source Details](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/platform/secret-scanning/bitbucket/step-4.png)

* **Name**: A name that contains only lowercase letters, numbers, and hyphens
* **Description** (optional): A description of the data source

**Step 5**

Review the data source, then select **Create Data Source**.

![Data Source Review](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/platform/secret-scanning/bitbucket/step-5.png)

**Step 6**

The data source appears in **Data Sources**. If auto-scan is enabled, Infisical starts a [historical scan](https://infisical.com/docs/documentation/platform/secret-scanning/scan-repositories.md#scans) of every repository.

![Data Source Created](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/platform/secret-scanning/bitbucket/step-6.png)

**Step 7**

To see the data source's repositories and scan history, select the data source.

![Data Source Page](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/platform/secret-scanning/bitbucket/step-7.png)

**Step 8**

To review the secrets the scans found, go to **Findings**. To learn what each finding contains and how to change its status, see [Findings](https://infisical.com/docs/documentation/platform/secret-scanning/findings.md).

![Findings Page](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/platform/secret-scanning/bitbucket/step-8.png)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.