You can prevent members from changing the visibility of organization-owned repositories on your GitHub Enterprise appliance.

When you prevent members from changing repository visibility, only site administrators have the ability to make public repositories private or make private repositories public.

  1. In the upper-right corner of any page, click . Rocketship icon for accessing site admin settings

  2. In the left sidebar, click Admin center. Admin Center tab

  3. Under Users can change repository visibility, select the drop-down menu, then click Disabled. Drop-down menu with the option to allow or deny all users the ability to change repository visibility