How do I set an environment variable (a token) across all codespaces? #49192
Unanswered
Milo123459
asked this question in
Codespaces
Replies: 1 comment 1 reply
-
Hi @Milo123459 ! Thanks for reaching out! Based on your scenario, I think it would be worth trying to access your variable via an encrypted codespace secret: https://docs.github.com/en/codespaces/managing-your-codespaces/managing-encrypted-secrets-for-your-codespaces#adding-a-secret. That guide should show you how to set a codespace secret, and share it with various repos! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
I saw on the docs they suggest adding something to the bash profile file, but due to my dotfiles repository being public, I'm not sure exposing the token onto that repository is a good idea. Does anyone know of a better way?
Beta Was this translation helpful? Give feedback.
All reactions