Skip to content

Merge requests should require at least 2 approvals

Description

This policy checks if merge requests in Bitbucket require at least 2 approvals, which is an important security practice to ensure that code changes are thoroughly reviewed before being merged into the main codebase. Requiring multiple approvals helps prevent malicious or vulnerable code from being introduced into the codebase. By enforcing this rule, organizations can reduce the risk of security breaches and maintain the integrity of their code. This check is particularly relevant in supply chain security, where a single vulnerable component can have far-reaching consequences.

Code Example

bitbucket
values:
  - kind: require_approvals_to_merge
    value: 2

Remediation

Ensure that the merge request configuration requires at least 2 approvals.

Rule Details

FieldValue
IDIAC-0820
SeverityMEDIUM
IaC Typebitbucket_configuration
Frameworks*
Checkov IDCKV_BITBUCKET_1

References