Bitbucket Cloud App
Last updated
Last updated
More information
Snyk privacy policy© 2024 Snyk Limited | All product and company names and logos are trademarks of their respective owners.
When you want to add new integrations to your Snyk account you need to first decide the level type at which you want to install the integration.
Group level - Add integrations to your Snyk application that will be available for your Snyk AppRisk Essentials or Snyk AppRisk Pro. If you want to set up integrations for Snyk AppRisk, use the Integrations menu at the Group level.
Organization level - Add integrations for your Snyk application that will be available for all Snyk products, except Snyk AppRisk.
The Bitbucket Cloud App is positioned to be the default Bitbucket Cloud integration
The Bitbucket Cloud App integration lets you connect your Snyk Organization to a Bitbucket Cloud Workspace and get all Snyk's core SCM integration features:
Continuously perform security scanning across all the integrated repositories
Detect vulnerabilities in your Open Source components
Provide automated fixes and upgrades
Provides developer teams with first-party visibility for security issues directly in the Bitbucket interface
Snyk recommends using the Bitbucket Cloud App integration for smoother integration and to ensure long-term support.
If you are using the Bitbucket Cloud Personal Access Token integration, see Migrate a Bitbucket Cloud integration for more information.
To give Snyk access to your Bitbucket account, you need to install the Snyk App on your Bitbucket Cloud workspace.
To install the Snyk App on your Bitbucket Cloud workspace, you must have Admin permissions for the Workspace in Bitbucket.
In Snyk, go to Integrations (Source control) > Bitbucket Cloud App tile, and click Connect to install the Snyk Bitbucket Cloud App on your Bitbucket Cloud workspace.
In the new Bitbucket tab, select the relevant workspace to connect to your Snyk Organization from the list and Grant access to let Snyk:
Read your account information
Read and modify your repositories and their pull requests
Read and modify your repositories' webhooks
Grant access to your Snyk Organization when you're prompted.
After you allow access to the Snyk Organization, the Snyk Organization Settings page opens and confirms that the Bitbucket Cloud App is connected.
After Snyk is integrated with Bitbucket Cloud, you can see the new Snyk security tab on the repository page and import and explore the issues and vulnerabilities for your repository Projects directly in Bitbucket.
Watch this short video to see how to set up Snyk security in Bitbucket Cloud.
If you need to, you can also install the Snyk Bitbucket Cloud App integration while you are in Bitbucket Cloud.
In one of your Bitbucket Cloud workspaces, go to the Security tab in one of your repositories, click Try now, and follow the procedure.
After you connect Snyk to your Bitbucket Cloud account, you can select repositories for Snyk to monitor.
In Snyk, go to Integrations > Bitbucket Cloud App card and click to start importing repositories to Snyk.
Choose the repositories you want to import to Snyk and click Add selected repositories.
After you add them, Snyk scans the selected repositories for dependency files in the entire directory tree, that is, package.json
, pom.xml
, and so on, and imports them to Snyk as Projects.
The imported Projects appear on your Projects page and are continuously checked for vulnerabilities.
After the integration is in place, you can use capabilities such as:
Snyk produces advanced security reports that let you explore the vulnerabilities found in your repositories, and fix them immediately by opening a fix pull request directly to your repository, with the required upgrades or patches.
The example that follows shows a Project-level security report.
Snyk scans your Projects on either a daily or a weekly basis. When new vulnerabilities are found, Snyk notifies you by email and by opening automated pull requests with fixes for your repositories.
The example that follows shows a fix pull request opened by Snyk.
To review and adjust the automatic fix pull request settings:
In Snyk, go to Organization settings > Integrations > Source control > Bitbucket Cloud App, and click Edit Settings.
Scroll to the Automatic fix PRs section and configure the relevant options.
Unlike manual pull requests opened from the Bitbucket interface, Snyk pull requests are not automatically assigned to the default reviewer set in your Bitbucket Cloud account.
For more information, see Automated pull request creation for new fixes.
Snyk tests any newly created pull request in your repositories for security vulnerabilities and sends a build check to Bitbucket Cloud. You can see directly from Bitbucket Cloud whether or not the pull request introduces new security issues.
The example that follows shows a Snyk pull request build check on the Bitbucket Cloud Pull Request page.
To review and adjust the pull request test settings, follow these steps:
In Snyk, go to Organization settings > Integrations > Source control > Bitbucket Cloud App, and click Edit Settings.
Scroll to Default Snyk test for pull requests > Open Source Security & Licenses, and configure the relevant options. See Configure PR Checks for more details.
When you install the Snyk Bitbucket Cloud App integration in your Bitbucket workspace, the members of your workspace can import repositories and see the security issues related to their repositories in a dedicated Snyk security tab in Bitbucket Cloud.
The first-party interface currently supports only the Snyk Open Source and Snyk Container products. Issues from other Snyk products do not show up on this page.
You can associate a first-party interface with a different Snyk account or Organization.
During the first-time Bitbucket Cloud App onboarding process, the first-party interface is associated with a specific Snyk Organization. This is the Snyk Organization to which Bitbucket users will import repositories and for which they will view Snyk issues.
To change the Snyk Organization after onboarding, go to the workspace settings > Security for Bitbucket Cloud > Integration Settings and click Connect via a different Snyk user/organization.
The installation process begins again, and you can choose the relevant Snyk Organization.
For detailed information on the permissions required for this integration, see Bitbucket permission requirements.
When you disconnect Snyk from your repository Projects, your credentials are removed from Snyk, and any integration-specific Projects that Snyk is monitoring are deactivated in Snyk.
If you choose to re-enable this integration later, you must re-enter your credentials and activate your Projects.
To disable this integration, in Organization settings > Integrations > Source Control > Bitbucket Cloud App:
In your list of integrations, select the Bitbucket Cloud App integration you want to deactivate and click Edit settings to open a page with the current status of your integration. The page includes sections that are specific to each integration, where you can manage your credentials, API key, Service Principal, or connection details.
Scroll to the Disconnect section and click Remove to remove the integration.
Disconnecting the integration from the Snyk side does not uninstall the app from your workspace in Bitbucket Cloud. To uninstall the Bitbucket app, navigate to your workspace settings in Bitbucket.org --> Installed Apps and remove the Snyk Security for Bitbucket Cloud app.
The Integrations page shows all active integrations, including data from your existing Snyk Organizations that is automatically synced and provides access to the Integration Hub.
Navigate to the BitBucket setup guide for Snyk AppRisk for all details on how to set up the BitBucket integration for Snyk AppRisk.