This version of GitHub Enterprise will be discontinued on This version of GitHub Enterprise was discontinued on 2020-01-22. 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 from private to public or public to private.

If an organization owner has restricted repository creation to organization owners only, then members will not be able to change repository visibility. If an organization owner 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 organization."

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

    Profile photo

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

    organization icons

  3. Under your organization name, click Settings.

    Organization settings button

  4. In the left sidebar, click Member privileges.

    Member privileges option in org settings

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

    Checkbox to allow members to change repository visibility

  6. Click Save.

Ask a human

Can't find what you're looking for?

Contact us