Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
---
title: "Bitbucket secret scanning"
sidebarTitle: "Bitbucket"
icon: "/images/platform/secret-scanning/icons/bitbucket.svg"
description: "Scan the repositories in a Bitbucket workspace."
---
To scan your Bitbucket repositories for leaked secrets, create a Bitbucket [data source](/documentation/platform/secret-scanning/scan-repositories) in Infisical.
## Prerequisites
- A [Bitbucket Connection](/integrations/app-connections/bitbucket) with secret scanning permissions
## Create a Bitbucket data source in Infisical
<Steps>
<Step>
Go to **Secret Scanning** > **Data Sources** and select **Add Data Source**.

</Step>
<Step>
Select **Bitbucket**.

</Step>
<Step>
Select the connection to use, the workspace, and the repositories to scan, then select **Next**.

- **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>
<Step>
Enter a name and, optionally, a description for the data source, then select **Next**.

- **Name**: A name that contains only lowercase letters, numbers, and hyphens
- **Description** (optional): A description of the data source
</Step>
<Step>
Review the data source, then select **Create Data Source**.

</Step>
<Step>
The data source appears in **Data Sources**. If auto-scan is enabled, Infisical starts a [historical scan](/documentation/platform/secret-scanning/scan-repositories#scans) of every repository.

</Step>
<Step>
To see the data source's repositories and scan history, select the data source.

</Step>
<Step>
To review the secrets the scans found, go to **Findings**. To learn what each finding contains and how to change its status, see [Findings](/documentation/platform/secret-scanning/findings).

</Step>
</Steps>