To protect your organization's data, you can configure permissions for changing repository visibility in your organization.

You can restrict the ability to change repository visibility to organization owners only, or allow members with admin privileges for a repository to also change visibility from private to public or public to private.

  1. Profile photo
    In the top right corner of GitHub Enterprise, click your profile photo, then click Your profile.

  2. organization icons
    On the left side of your profile page, under "Organizations", click the icon for your organization.

  3. Organization settings button
    Under your organization name, click Settings.

  4. Member privileges option in org settings
    In the left sidebar, click Member privileges.

  5. Checkbox to allow members to change repository visibility
    Under "Repository visibility change", deselect Allow members to change repository visibilities for this organization.

  6. Click Save.