Advanced topics
Git Authentication
For private repositories, we need to separately authenticate against the submodule repositories, as GitHub Codespaces will only inject a token with access rights to the current repository.
-
Change to the users home directory
cd ~
-
Install Git Credential Manager
curl -LO https://raw.githubusercontent.com/GitCredentialManager/git-credential-manager/main/src/linux/Packaging.Linux/install-from-source.sh && sh ./install-from-source.sh && git-credential-manager-core configure
-
Configure a credential store typ, e.g.
git config --global credential.credentialStore plaintext
-
Verify with
git config --global -l
, it should show git-credential-manager-core as the credential helper.
Update the submodules
Run git submodule update --recursive
See VSCode Issue #109050 for details.
Setup skopeo
Skopeo is needed to download various files during the build:
sudo mkdir -p /run/containers/1000
sudo chmod a+w /run/containers/1000
skopeo login ghcr.io --authfile ~/auth.json --username <your GitHub User>
Enter your token when asked for the password.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.