From c787692453ff1cc7643155c72b486cb24ca73854 Mon Sep 17 00:00:00 2001 From: hubwriter Date: Tue, 2 Jan 2024 09:47:46 +0000 Subject: [PATCH] Codespaces: remove info about deprecated form of external repo access (#47409) --- .../index.md | 1 - ...ccess-for-your-organizations-codespaces.md | 45 ------------------- ...g-repository-access-for-your-codespaces.md | 21 +-------- 3 files changed, 1 insertion(+), 66 deletions(-) delete mode 100644 content/codespaces/managing-codespaces-for-your-organization/managing-repository-access-for-your-organizations-codespaces.md diff --git a/content/codespaces/managing-codespaces-for-your-organization/index.md b/content/codespaces/managing-codespaces-for-your-organization/index.md index 41552b45ab..cc1c73e24c 100644 --- a/content/codespaces/managing-codespaces-for-your-organization/index.md +++ b/content/codespaces/managing-codespaces-for-your-organization/index.md @@ -14,7 +14,6 @@ children: - /listing-the-codespaces-in-your-organization - /managing-the-cost-of-github-codespaces-in-your-organization - /managing-development-environment-secrets-for-your-repository-or-organization - - /managing-repository-access-for-your-organizations-codespaces - /reviewing-your-organizations-audit-logs-for-github-codespaces - /restricting-access-to-machine-types - /restricting-the-number-of-organization-billed-codespaces-a-user-can-create diff --git a/content/codespaces/managing-codespaces-for-your-organization/managing-repository-access-for-your-organizations-codespaces.md b/content/codespaces/managing-codespaces-for-your-organization/managing-repository-access-for-your-organizations-codespaces.md deleted file mode 100644 index fe905fcfa7..0000000000 --- a/content/codespaces/managing-codespaces-for-your-organization/managing-repository-access-for-your-organizations-codespaces.md +++ /dev/null @@ -1,45 +0,0 @@ ---- -title: Managing repository access for your organization's codespaces -shortTitle: Repository access -intro: 'You can manage the repositories in your organization that {% data variables.product.prodname_github_codespaces %} can access.' -permissions: 'To manage access and security for {% data variables.product.prodname_github_codespaces %} for an organization, you must be an organization owner.' -versions: - fpt: '*' - ghec: '*' -type: how_to -topics: - - Codespaces - - Security - - Administrator -redirect_from: - - /codespaces/managing-codespaces-for-your-organization/managing-access-and-security-for-your-organizations-codespaces - - /github/developing-online-with-codespaces/managing-access-and-security-for-codespaces - - /codespaces/working-with-your-codespace/managing-access-and-security-for-codespaces -product: '{% data reusables.gated-features.codespaces-org %}' ---- - -{% warning %} - -**Deprecation note**: The access and security setting described below is now deprecated and is documented here for reference only. To enable expanded access to other repositories, add the requested permissions to your `devcontainer.json` configuration file. For more information, see "[AUTOTITLE](/codespaces/managing-your-codespaces/managing-repository-access-for-your-codespaces)." - -{% endwarning %} - -By default, a codespace can only access the repository where it was created. When you enable access and security for a repository owned by your organization, any codespaces that are created for that repository will also have read permissions to all other repositories the organization owns and the codespace creator has permissions to access. If you want to restrict the repositories a codespace can access, you can limit it to either the repository where the codespace was created, or to specific repositories. You should only enable access and security for repositories you trust. - -To manage which users in your organization can use {% data variables.product.prodname_github_codespaces %}, see "[AUTOTITLE](/codespaces/managing-codespaces-for-your-organization/enabling-or-disabling-github-codespaces-for-your-organization)." - -{% data reusables.profile.access_org %} -{% data reusables.profile.org_settings %} -{% data reusables.organizations.click-codespaces %} -{% data reusables.organizations.click-general %} -1. On the {% data variables.product.prodname_codespaces %} settings page, under "Access and security", select the setting you want for your organization: - - - **Disabled** - Limit the access of codespaces to only the repository they were created from. - - **All repositories** - All codespaces created from repositories in my organization can access other repositories owned by my organization. - - **Selected repositories** - Codespaces created for specific repositories in my organization can access other repositories owned by my organization. - -1. If you chose "Selected repositories", select the "Select repositories" dropdown menu, then click a repository to allow the repository's codespaces to access other repositories owned by your organization. Repeat this step for all repositories whose codespaces you want to access other repositories. - -## Further reading - -- "[AUTOTITLE](/codespaces/managing-your-codespaces/managing-repository-access-for-your-codespaces)" diff --git a/content/codespaces/managing-your-codespaces/managing-repository-access-for-your-codespaces.md b/content/codespaces/managing-your-codespaces/managing-repository-access-for-your-codespaces.md index ded472f803..59f668c4fa 100644 --- a/content/codespaces/managing-your-codespaces/managing-repository-access-for-your-codespaces.md +++ b/content/codespaces/managing-your-codespaces/managing-repository-access-for-your-codespaces.md @@ -11,6 +11,7 @@ topics: - Security redirect_from: - /codespaces/managing-your-codespaces/managing-access-and-security-for-your-codespaces + - /codespaces/managing-codespaces-for-your-organization/managing-repository-access-for-your-organizations-codespaces --- ## Overview @@ -124,26 +125,6 @@ You should only authorize permissions for repositories you know and trust. If yo You can only authorize permissions that your personal account already possesses. If a codespace requests permissions for repositories that you don't currently have access to, contact an owner or admin of the repository to obtain sufficient access and then try to create a codespace again. -## Access and security - -{% warning %} - -**Deprecation note**: The access and security setting described below is now deprecated and is documented here for reference only. To enable expanded access to other repositories, add the requested permissions to your dev container definition for your codespace, as described above. - -{% endwarning %} - -When you enable access and security for a repository owned by your personal account, any codespaces that are created for that repository will have read permissions to all other repositories you own. If you want to restrict the repositories a codespace can access, you can limit to it to either the repository the codespace was opened for or specific repositories. You should only enable access and security for repositories you trust. - -{% data reusables.user-settings.access_settings %} -{% data reusables.user-settings.codespaces-tab %} -1. Under "Access and security," select the setting you want for your personal account: - - - **Disabled** - Limit access of your personal codespaces to the repository they were created from. - - **All repositories** - All of your personal codespaces can access other repositories you own. - - **Selected repositories** - Personal codespaces created from specific repositories can access other repositories you own. - -1. If you chose "Selected repositories", select the "Select repositories" dropdown menu, then click a repository to allow the repository's codespaces to access other repositories you own. Repeat this step for all repositories whose codespaces you want to access other repositories you own. - ## Further reading - "[AUTOTITLE](/codespaces/setting-your-user-preferences)"