Preventing users from changing a repository's visibility
You can prevent members from changing the visibility of organization-owned repositories on your GitHub Enterprise Server 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.
If a site administrator has restricted repository creation to organization owners only, then members will not be able to change repository visibility. If a site administrator has restricted member repository creation to private repositories only, then members will only be able to change repositories from public to private. For more information, see "Restricting repository creation in your instance."
-
In the upper-right corner of any page, click .
-
In the left sidebar, click Business.
-
Under your business account's name, click Settings.
-
In the Business settings sidebar, click Member privileges.
-
Under "Repository visibility change", review the information about changing the setting. Optionally, to view the setting's current configuration for all organizations in the business before enforcing the setting, click View the current configuration on your organizations.
-
Under "Repository visibility change", use the drop-down menu and choose a policy.