Signed system commits and requiring signed commits
When you enable signed system commits, Bitbucket will use a system public GPG key to automatically sign the commits that it creates. This includes pull request merge commits, commits made by editing files in the browser, and accepted code suggestions in comments.
Using Bitbucket-signed commits will prevent failures and errors when you’re checking commits for signatures, having all signed commits merged into subsequent pull requests, or verifying commit signatures through your local Git installation. So you can be sure that you comply even with the strictest security and compliance standards.
Enable signed system commits
System commit signing is disabled by default. You need to be a workspace administrator to configure signed system commits.
Select the Settings cog on the top navigation bar, and then select Workspace settings.
Select the Automatically sign commits made through Bitbucket checkbox under Signed commits to enable system signed commits within the workspace.
Select the Update workspace button to save your changes.
Limitations
If the Automatically sign commits made through Bitbucket option is enabled in Workspace settings, and an admin has turned on the Require verified signature on all commits pushed from outside Bitbucket, merge strategies Rebase Fast-Forward and Rebase merge are not supported.
Require signed commits (Premium plans only)
Premium plan customers only
Requiring signed commits within a workspace is only available to administrators in organizations with a Bitbucket Cloud Premium plan.
If you are on a Premium Bitbucket Cloud plan and are a workspace administrator, you can require that all commits are signed via Bitbucket.
Select the Settings cog on the top navigation bar, and then select Workspace settings.
Select the Require verified signature on all commits pushed from outside Bitbucket checkbox under Signed commits to require system signed commits within the workspace.
Select the Update workspace button to save your changes.
Signed commits required | How it affects your team’s workflow |
|---|---|
Enabled |
|
Disabled |
|
More information on using GPG or SSH keys to sign commits
Was this helpful?