I finally managed to get VSCode devcontainers working with private Github repos. The trick was to mount some files from the host OS to the container. Works pretty well, but the thing to remember is that with ssh keys, you get access to all repos in a Github account, so the only really safe way is to have seperate Github accounts for each project, and use different key pairs for each. I never got it working with the fine grained access tokens over https, no idea if it‘s even possible. #

For enquiries about my consulting, development, training and writing services, aswell as sponsorship opportunities contact me directly via email. More details about me here.