Skip to content
This repository was archived by the owner on May 24, 2024. It is now read-only.

Commit 29b6631

Browse files
authored
README tweaks
1 parent ff0371c commit 29b6631

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,14 @@ Generally when you are dealing with a multi-repository application, you end up w
44

55
GitHub Codespaces conceptually fits well into this model since you could create a Codespace from this boostrap and then clone other repositories into it. However, to improve security, Codespaces currelty provides a repository scoped token by default. However, you can use SSH keys or a personal access token instead. This sample illustrates how to configure a user secret and assign it to a Codespace so that it is used instead of the default `GITHUB_TOKEN`.
66

7+
Follow these steps to use it:
78

9+
1. Fork this repository
10+
1. Create a GitHub personal access token for use in these situations.
11+
1. Create a Codespaces user secret called `GH_USER` with the appropriate GitHub user and `GH_TOKEN` with the personal access token in it. (Your picture in upper-right > Settings, Codespaces, New secret)
12+
1. Give your forked repository access to the secrets
13+
1. Update `repos-to-clone.list` with any repositories you want to clone using this token and push it to the repository.
14+
1. Create a Codespace
15+
1. After the "postCreateCommand" has finished, use **File > Open...** in VS Code and go up one level (to `/workspaces`) to find the cloned repositories. You can also use a multi-root workspace that you check into this bootstrap repository.
816

17+
Anything under the `/workspaces` folder will survive a rebuild.

0 commit comments

Comments
 (0)