Ensure 2 admins are set for each repository
Description
This policy checks whether at least two administrators are set for each GitHub repository. Having multiple administrators ensures that there is always someone available to manage the repository, even if one administrator is unavailable. This is important for maintaining continuity and security of the repository. Without at least two administrators, a repository may be left without proper management, potentially leading to security vulnerabilities or disruptions.
Code Example
github
Add at least two users with admin permissions in the repository settings under 'Collaborators & teams' or using the GitHub API to update the repository collaborators.Remediation
Ensure that at least two users are assigned as administrators to the repository.
Rule Details
| Field | Value |
|---|---|
| ID | IAC-1047 |
| Severity | MEDIUM |
| IaC Type | github_configuration |
| Frameworks | * |
| Checkov ID | CKV_GITHUB_9 |