This version of GitHub Enterprise will be discontinued on 2021-06-09. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.

Restricting repository visibility changes in your organization

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.

Warning: If enabled, this setting allows people with admin permissions to change an existing repository to any visibility, even if you do not allow that type of repository to be created. For more information about restricting the visibility of repositories during creation, see "Restricting repository creation in your organization."

  1. In the top right corner of GitHub, click your profile photo, then click Your organizations. Your organizations in the profile menu
  2. Click Settings next to the organization. The settings button
  3. In the left sidebar, click Member privileges. Member privileges option in org settings
  4. Under "Repository visibility change", deselect Allow members to change repository visibilities for this organization. Checkbox to allow members to change repository visibility
  5. Click Save.

Further reading

Did this doc help you?

Privacy policy

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

Or, learn how to contribute.