From 69005e93ff46de4c51b3e2049a3b97aac9c97c2f Mon Sep 17 00:00:00 2001 From: Joe Clark <31087804+jc-clark@users.noreply.github.com> Date: Fri, 25 Oct 2024 12:27:00 -0700 Subject: [PATCH 1/2] Add list of consequences for changing repo visibility (#52883) Co-authored-by: Siara <108543037+SiaraMist@users.noreply.github.com> --- .../setting-repository-visibility.md | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/content/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/setting-repository-visibility.md b/content/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/setting-repository-visibility.md index 854c0527a7d1..6e8479e08ffa 100644 --- a/content/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/setting-repository-visibility.md +++ b/content/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/setting-repository-visibility.md @@ -81,6 +81,58 @@ We recommend reviewing the following caveats before you change the visibility of For information about improving repository security, see "[AUTOTITLE](/code-security/getting-started/securing-your-repository)."{% endif %} +## Consequences of changing a repository's visibility + +>[!CAUTION]Before you change your repository's visibility, understand the consequences of this change. + +### Changing from public to private + +Stars and watchers for this repository will be permanently erased, which will affect repository rankings. +* Custom {% data variables.product.prodname_dependabot %} alert rules will be disabled unless {% data variables.product.prodname_GH_advanced_security %} is enabled for this repository. Dependency graph and {% data variables.product.prodname_dependabot_alerts %} will remain enabled with permission to perform read-only analysis on this repository. +* Code scanning will become unavailable. +* Current forks will remain public and will be detached from this repository. + +### Changing from private to public + +* The code will be visible to everyone who can visit {% data variables.product.prodname_dotcom_the_website %}. +* Anyone can fork your repository. +* All push rulesets will be disabled. +* Your changes will be published as activity. +* Actions history and logs will be visible to everyone. +* Stars and watchers for this repository will be permanently erased. + +{% ifversion ghes or ghec %} + +### Changing from private to internal + +* All members of the enterprise will be given read access. +* Outside collaborators can no longer be added to forks unless they're added to the root. +* Stars and watchers for this repository will be permanently erased. + +### Changing from internal to private + +* Stars and watchers for this repository will be permanently erased, which will affect repository rankings. +* Custom {% data variables.product.prodname_dependabot %} alert rules will be disabled unless GitHub Advanced Security is enabled for this repository. Dependency graph and {% data variables.product.prodname_dependabot_alerts %} will remain enabled with permission to perform read-only analysis on this repository. +* Code scanning will become unavailable. +* Current forks will remain public and will be detached from this repository. + +### Changing from internal to public + +* The code will be visible to everyone who can visit {% data variables.product.prodname_dotcom_the_website %}. +* Anyone can fork your repository. +* All push rulesets will be disabled. +* Your changes will be published as activity. +* Actions history and logs will be visible to everyone. +* Stars and watchers for this repository will be permanently erased. + +### Changing from public to internal + +* All members of the enterprise will be given read access. +* Outside collaborators can no longer be added to forks unless they're added to the root. +* Stars and watchers for this repository will be permanently erased. + +{% endif %} + ## Changing a repository's visibility {% data reusables.repositories.navigate-to-repo %} From f6715cea12945a681c299565a1686d58790dd0fa Mon Sep 17 00:00:00 2001 From: Siara <108543037+SiaraMist@users.noreply.github.com> Date: Fri, 25 Oct 2024 13:11:21 -0700 Subject: [PATCH 2/2] Fix typo (#52884) Co-authored-by: jc-clark --- .../setting-repository-visibility.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/content/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/setting-repository-visibility.md b/content/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/setting-repository-visibility.md index 6e8479e08ffa..89821ee8c98f 100644 --- a/content/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/setting-repository-visibility.md +++ b/content/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/setting-repository-visibility.md @@ -87,7 +87,7 @@ For information about improving repository security, see "[AUTOTITLE](/code-secu ### Changing from public to private -Stars and watchers for this repository will be permanently erased, which will affect repository rankings. +* Stars and watchers for this repository will be permanently erased, which will affect repository rankings. * Custom {% data variables.product.prodname_dependabot %} alert rules will be disabled unless {% data variables.product.prodname_GH_advanced_security %} is enabled for this repository. Dependency graph and {% data variables.product.prodname_dependabot_alerts %} will remain enabled with permission to perform read-only analysis on this repository. * Code scanning will become unavailable. * Current forks will remain public and will be detached from this repository. @@ -101,8 +101,6 @@ Stars and watchers for this repository will be permanently erased, which will af * Actions history and logs will be visible to everyone. * Stars and watchers for this repository will be permanently erased. -{% ifversion ghes or ghec %} - ### Changing from private to internal * All members of the enterprise will be given read access. @@ -131,8 +129,6 @@ Stars and watchers for this repository will be permanently erased, which will af * Outside collaborators can no longer be added to forks unless they're added to the root. * Stars and watchers for this repository will be permanently erased. -{% endif %} - ## Changing a repository's visibility {% data reusables.repositories.navigate-to-repo %}