Skip to content

GH Auth inside of a devcontainer #3226

Answered by mislav
reflash asked this question in Q&A
Mar 14, 2021 · 1 comments · 6 replies
Discussion options

You must be logged in to vote

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 the gh auth login process into your dev container.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@mislav
Comment options

@mengstr
Comment options

@3f6a
Comment options

@3f6a
Comment options

@3f6a
Comment options

Answer selected by reflash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants