Enterprise Should Prevent Members From Creating Public Repositories
policy name: enterprise_allows_creating_public_repos
severity: MEDIUM
Description
The enterprise’s repository creation policy should be set to private/internal repositories only. This will prevent non-admin users from creating public repositories and potentially exposing source code.
Threat Example(s)
Users can accidentally create public repositories and expose source code.
Remediation
- Make sure you are an enterprise owner
- Go to the policies page
- Under the ‘Repository creation’ section, Choose the ‘Members can create repositories’ option and uncheck ‘Public’