You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/setting-repository-visibility.md
+52Lines changed: 52 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,58 @@ We recommend reviewing the following caveats before you change the visibility of
81
81
82
82
For information about improving repository security, see "[AUTOTITLE](/code-security/getting-started/securing-your-repository)."{% endif %}
83
83
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
+
84
136
## Changing a repository's visibility
85
137
86
138
{% data reusables.repositories.navigate-to-repo %}
0 commit comments