Repository Should Have A Low Admin Count
policy name: repository_has_too_many_admins
severity: LOW
Description
Repository admins are highly privileged and could create great damage if they are compromised. It is recommended to limit the number of repository admins to the minimum required, and no more than 5% of the userbase (Up to 3 admins are always allowed).
Threat Example(s)
A compromised user with admin permissions can initiate a supply chain attack in a plethora of ways. Having many admin users increases the overall risk of user compromise, and makes it more likely to lose track of unused admin permissions given to users in the past.
Remediation
- Make sure you have admin permissions
- Go to the repository settings page
- Press ‘Collaborators and teams’
- Select the unwanted admin users
- Select ‘Change Role’