Ensure minimum admins are set for the organization
Description
This policy checks if the number of admins in a GitHub organization is within a specified limit. It ensures that the organization has a minimum number of admins set, which is crucial for maintaining security and access control. Having too many admins can increase the risk of unauthorized access or malicious activities. The check is important because it helps prevent potential security breaches by limiting the number of users with administrative privileges. The maximum allowed number of admins is set to 3.
Code Example
github
Organizations > Settings > Members > Remove unnecessary admin accounts or adjust rolesRemediation
To fix this issue, reduce the number of admins in the organization to 3 or less. This can be done by removing unnecessary admin accounts or adjusting the roles of existing users to limit their privileges.
Rule Details
| Field | Value |
|---|---|
| ID | IAC-1062 |
| Severity | MEDIUM |
| IaC Type | github_configuration |
| Frameworks | * |
| Checkov ID | CKV_GITHUB_26 |