Skip to content

Commit 69005e9

Browse files
jc-clarkSiaraMist
andauthored
Add list of consequences for changing repo visibility (#52883)
Co-authored-by: Siara <108543037+SiaraMist@users.noreply.github.com>
1 parent b49665b commit 69005e9

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

content/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/setting-repository-visibility.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,58 @@ We recommend reviewing the following caveats before you change the visibility of
8181

8282
For information about improving repository security, see "[AUTOTITLE](/code-security/getting-started/securing-your-repository)."{% endif %}
8383

84+
## Consequences of changing a repository's visibility
85+
86+
>[!CAUTION]Before you change your repository's visibility, understand the consequences of this change.
87+
88+
### Changing from public to private
89+
90+
Stars and watchers for this repository will be permanently erased, which will affect repository rankings.
91+
* 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.
92+
* Code scanning will become unavailable.
93+
* Current forks will remain public and will be detached from this repository.
94+
95+
### Changing from private to public
96+
97+
* The code will be visible to everyone who can visit {% data variables.product.prodname_dotcom_the_website %}.
98+
* Anyone can fork your repository.
99+
* All push rulesets will be disabled.
100+
* Your changes will be published as activity.
101+
* Actions history and logs will be visible to everyone.
102+
* Stars and watchers for this repository will be permanently erased.
103+
104+
{% ifversion ghes or ghec %}
105+
106+
### Changing from private to internal
107+
108+
* All members of the enterprise will be given read access.
109+
* Outside collaborators can no longer be added to forks unless they're added to the root.
110+
* Stars and watchers for this repository will be permanently erased.
111+
112+
### Changing from internal to private
113+
114+
* Stars and watchers for this repository will be permanently erased, which will affect repository rankings.
115+
* 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.
116+
* Code scanning will become unavailable.
117+
* Current forks will remain public and will be detached from this repository.
118+
119+
### Changing from internal to public
120+
121+
* The code will be visible to everyone who can visit {% data variables.product.prodname_dotcom_the_website %}.
122+
* Anyone can fork your repository.
123+
* All push rulesets will be disabled.
124+
* Your changes will be published as activity.
125+
* Actions history and logs will be visible to everyone.
126+
* Stars and watchers for this repository will be permanently erased.
127+
128+
### Changing from public to internal
129+
130+
* All members of the enterprise will be given read access.
131+
* Outside collaborators can no longer be added to forks unless they're added to the root.
132+
* Stars and watchers for this repository will be permanently erased.
133+
134+
{% endif %}
135+
84136
## Changing a repository's visibility
85137

86138
{% data reusables.repositories.navigate-to-repo %}

0 commit comments

Comments
 (0)