policy name: repository_has_too_many_admins
Repository admins are highly privileged and could create great damage if they are compromised. It is recommeneded to limit the number of Repository Admins to the minimum required (recommended maximum 3 admins).
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.
- Make sure you have admin permissions
- Go to the repository settings page
- Press “Collaborators and teams”
- Select the unwanted admin users
- Select “Change Role”