Managing access and security for your organization's codespaces

You can manage the repositories in your organization that Codespaces can access.

To manage access and security for Codespaces for an organization, you must be an organization owner.

Note: Codespaces is currently in limited public beta and subject to change. For more information about joining the beta, see "About Codespaces."

Organization owners can manage which repositories a codespace can access.

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 and write 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 to 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 Codespaces, see "Managing user permissions for your organization."

  1. In the top right corner of GitHub, click your profile photo, then click Your organizations. Your organizations in the profile menu
  2. Click Settings next to the organization. The settings button
  3. In the left sidebar, click Codespaces. "Codespaces" tab in left sidebar
  4. Under "Access and security", select the setting you want for your organization. Radio buttons to manage trusted repositories
  5. 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. "Selected repositories" drop-down menu

Did this doc help you?

Privacy policy

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

Or, learn how to contribute.