Skip to content

Ensure GitHub branch protection requires conversation resolution

Description

This policy checks whether GitHub branch protection requires conversation resolution, ensuring that all conversations are resolved before a pull request can be merged. This is important because it helps prevent unresolved conversations from being overlooked, which can lead to security vulnerabilities or bugs in the code. By requiring conversation resolution, teams can ensure that all issues are addressed before code is merged into a protected branch. This helps maintain code quality and security.

Code Example

github
In the GitHub repository settings, navigate to 'Branches' and edit the branch protection rule. Under 'Merge checks', select 'Require conversation resolution' and save the changes.

Remediation

Enable the 'Require conversation resolution' setting for the branch protection rule in GitHub.

Rule Details

FieldValue
IDIAC-1054
SeverityMEDIUM
IaC Typegithub_configuration
Frameworks*
Checkov IDCKV_GITHUB_16

References