Check ID: repository_default_branch_requires_conversation_resolution
Provider: GitHub
Service: repository
Severity: MEDIUM
Categories: software-supply-chain
Resource type: NotDefined

What this check verifies

GitHub repository default branch uses branch protection to require conversation resolution on pull requests (Require conversation resolution before merging).

Risk

Unresolved threads let code with known concerns reach default, weakening integrity and confidentiality. Insecure changes or secrets may ship, enabling injection, auth bypass, or data exposure. Availability can suffer from regressions; review accountability is reduced.

Recommendation

Enable Require conversation resolution before merging on the default branch. Also enforce:
  • Required approvals and CI checks
  • CODEOWNERS on critical paths
  • Least privilege for merge rights
  • Apply rules to admins to prevent bypass

Remediation

gh api -X PUT repos/<OWNER>/<REPO>/branches/<DEFAULT_BRANCH>/protection/required_conversation_resolution -f enabled=true

References

Where this check fires

This check runs on every scheduled scan against your GitHub account. Findings appear at Cloud Security → Findings filterable by Check ID = repository_default_branch_requires_conversation_resolution. To re-evaluate after a fix, hit Run now on the account’s schedule under Cloud Security → Schedules — the next scan re-checks this control and marks the finding fixed or keeps it persistent.
← Back to GitHub checks