How to debug Codespace secrets being unavailable as env var #8978
Unanswered
davetapley
asked this question in
Codespaces
Replies: 1 comment
-
We ran into this issue around SSH keys, have you tried surrounding your multi-line secrets in single quotes?
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have added a Codespace secret and made it available to several repos.
It's available as an env var in one, but not in the other.
I've tried re-creating, but it's still not set.
From trawling the logs (via downloading as
.zip
) I was able to identify these files:/workspaces/.codespaces/shared/.env
/workspaces/.codespaces/shared/.user-secrets.json
and confirmed that they are present and contain the secret on both repos.
Any tips on where else I could look for a clue why it isn't being set on one repo?
... it gets weirder:
In the creation logs I also found this snippet:
So I tried to run that manually and I get another error because the
.env
is invalid.And the
.env
is invalid (because, per this I'm pasting a multilinevpnconfig.ovpn
in to the secret). It looks like this:Which raises the questions:
/workspaces/.codespaces/shared/.env
seems to imply), then how is it working in one of my repos? 🤯Beta Was this translation helpful? Give feedback.
All reactions