-
Hi! I'm trying to run gh cli inside of VS Code devcontainer. Unfortunately it demands me to authenticate every time I rebuild the container. Is there any way to make this work ? Maybe I can copy some of credentials from my source system? |
Beta Was this translation helpful? Give feedback.
Answered by
mislav
Mar 15, 2021
Replies: 1 comment 6 replies
-
If you can set environment variables globally in your container, you can set Alternatively, you may copy your |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
reflash
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you can set environment variables globally in your container, you can set
GH_TOKEN
with the value of your OAuth token or Personal Access Token for GitHub, and gh will use that.Alternatively, you may copy your
~/.config/gh/hosts.yml
file from a computer where you've completed thegh auth login
process into your dev container.