Skip to content

Ensure GitHub branch protection rules requires signed commits

Description

This policy checks whether GitHub branch protection rules require signed commits. Signed commits ensure the authenticity and integrity of code changes, preventing malicious modifications. By requiring signed commits, repositories can maintain a secure and trustworthy commit history. This is particularly important for critical infrastructure or sensitive codebases.

Code Example

github
Go to Repository Settings > Branches > Branch protection rules > Edit > Require a pull request before merging > Require signed commits

Remediation

Enable required signed commits for GitHub branch protection rules.

Rule Details

FieldValue
IDIAC-1042
SeverityMEDIUM
IaC Typegithub_configuration
Frameworks*
Checkov IDCKV_GITHUB_4

References