Enterprise Should Not Allow Members To Create public Repositories

policy name: enterprise_allows_creating_public_repos

severity: MEDIUM


The enterprise’s repository creation policy should be set to private/internal repositories only. This will prevents non-admin users from creating public repositories and potentially exposing source code.

Threat Example(s)

Users can accidentaly create public repositories and expose source code.


  1. Make sure you are an enterprise owner
  2. Go to the policies page
  3. Under the “Repository creation” section
  4. Choose the “Members can create repositories” option and uncheck ‘Public’