Require signed commits for a repository

Premium plan customers only

Requiring signed commits within a repository is only available to administrators in organizations with a Bitbucket Cloud Premium plan.

As the repository administrator, you can enable a setting that requires commits to have a verified signature in order to be successfully pushed.

  1. As the repository administrator, next to the name of your repository in the left sidebar, select More actions (…), and then select Settings.

  2. Select Repository details under General on the left sidebar.

  3. Select the Advanced dropdown below the Repository details.

  4. Select the Require all commits to have a verified signature checkbox under Signed commits.

Signed commits required

How it affects your team’s workflow

Enabled

  • Historical Commits: No changes are applied to historical commits. They remain unaffected after enforcement is turned on

  • Pushing Commits: Every commit that gets pushed to the repository must be signed. If a commit is unsigned or the signature is invalid, the git push command will fail with an error, preventing the push. This is the primary point where enforcement occurs

Disabled

  • Historical Commits: No changes are applied to any historical commits

  • Pushing Commits: Commits pushed to the repository do not require a signature. There are no checks or enforcement mechanisms in place, meaning unsigned commits can be pushed without errors

  • Merging Branches: Local branch merges can be performed without any checks on commit signatures. Multiple commits being merged are allowed with no signature validation

 

Still need help?

The Atlassian Community is here for you.