Sitelet https://web.archive.org/web/20220126222255/https://github.com/github/roadmap/issues/356
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codespaces: Improved multi-repository support #356

Open
github-product-roadmap opened this issue Dec 15, 2021 · 0 comments
Open

Codespaces: Improved multi-repository support #356

github-product-roadmap opened this issue Dec 15, 2021 · 0 comments

Comments

@github-product-roadmap
Copy link
Collaborator

@github-product-roadmap github-product-roadmap commented Dec 15, 2021 •

Summary

Currently, users who need multiple repos for development must use complex workarounds to get the right level of permissions and scopes they need to be work productively within their main project repository.

Soon, customers will be able to specify finer grained permissions & scopes that a codespace needs as part of their configuration setup.

Intended Outcome

Rather than forcing users to navigate Codespace defaults, options, and custom PATs to get the right set of permissions and scopes to leverage other repositories their main project needs, users will soon be able to specify the exact set of permissions and scopes they need as part of the devcontainer.json.

How will it work?

We allow users to customize codespace permissions in devcontainer.json via a codespaces.repositories property:
image

On create, we look to see if the user has the appropriate permissions to create the codespace. For example, if the devcontainer requires read access to a specific repo that the user does not have access to, creation will fail as the resulting codespace will not have the complete set of required repositories needed to successfully run the project.

Additionally, on create and start we will check whether the user has previously accepted the current set or a superset of the current permissions for the repository. If they have then create/start continues. If not, they are sent through an acceptance flow similar to the GitHub App authorization flow, showing the user the repositories and scopes to be used within the codespace.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Status: Q1 2022 – Jan-Mar
GitHub public roadmap
Q1 2022 – Jan-Mar
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant