Note: Access and security for Codespaces is currently in beta and subject to change.
Managing security and access for your user account
When you enable access and security for a repository owned by your user account, any codespaces you create for that repository will have read and write permissions to all other repositories you own. You can enable access and security for none of your repositories, all of your repositories, or specific repositories. You should only enable access and security for repositories you trust.
- In the upper-right corner of any page, click your profile photo, then click Settings.
- In the left sidebar, click Codespaces.
- Under "Access and security", select the setting you want for your user account.
- If you chose "Selected repositories", select the drop-down menu, then click a repository to allow the repository's codespaces to access other repositories you own. Repeat for all repositories whose codespaces you want to access other repositories you own.
Managing security and access for your organization
Organization owners can manage security and access for Codespaces.
When you enable access and security for a repository owned by your organization, any codespaces that are created for that repository will have read and write permissions to all other repositories the organization owns. You can enable access and security for none of your organization's repositories, all of your organization's repositories, or specific repositories. You should only enable access and security for repositories you trust.
- In the top right corner of GitHub, click your profile photo, then click Your profile.
- On the left side of your profile page, under "Organizations", click the icon for your organization.
- Under your organization name, click Settings.
- In the left sidebar, click Codespaces.
- To approve of the pre-release program terms of service on behalf of your organization and enable Codespaces, under "User permissions", select Selected users, then type the username for each person to grant access to. Repeat for all users who you want to have access to your organization's codespaces.
- Under "Access and security", select the setting you want for your organization.
- If you chose "Selected repositories", select the drop-down menu, then click a repository to allow the repository's codespaces to access other repositories owned by your organization. Repeat for all repositories whose codespaces you want to access other repositories.