Skip to content

Commit 485ba6a

Browse files
authored
Merge pull request github#35074 from github/repo-sync
Repo sync
2 parents 159ac36 + f6715ce commit 485ba6a

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

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

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,54 @@ 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+
### Changing from private to internal
105+
106+
* All members of the enterprise will be given read access.
107+
* Outside collaborators can no longer be added to forks unless they're added to the root.
108+
* Stars and watchers for this repository will be permanently erased.
109+
110+
### Changing from internal to private
111+
112+
* Stars and watchers for this repository will be permanently erased, which will affect repository rankings.
113+
* 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.
114+
* Code scanning will become unavailable.
115+
* Current forks will remain public and will be detached from this repository.
116+
117+
### Changing from internal to public
118+
119+
* The code will be visible to everyone who can visit {% data variables.product.prodname_dotcom_the_website %}.
120+
* Anyone can fork your repository.
121+
* All push rulesets will be disabled.
122+
* Your changes will be published as activity.
123+
* Actions history and logs will be visible to everyone.
124+
* Stars and watchers for this repository will be permanently erased.
125+
126+
### Changing from public to internal
127+
128+
* All members of the enterprise will be given read access.
129+
* Outside collaborators can no longer be added to forks unless they're added to the root.
130+
* Stars and watchers for this repository will be permanently erased.
131+
84132
## Changing a repository's visibility
85133

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

0 commit comments

Comments
 (0)