Preconfigure Container Registry in Codespaces

Solution 1:

Of course it's very simple once you see it!

When you open the Secrets in your GitHub settings you end up on the ACTIONS Secrets page. And the fact that there are 3 other secrets pages is hidden because the expanded settings menu has scrolled off screen.

So make sure you add these secrets to the CODESPACES Secrets page:

Use the Codespaces secrets page

Then rebuild the Codespace.

Solution 2:

A few questions to try and unblock you -

  1. Have you ensured that your secrets are available to the repository you're creating the codespace off of? You can click "Update" to see which repos have access to these secrets. More info here
  2. Did you create this codespace before your secrets were created? Secrets are only injected at codespace creation or restarting so if you added these secrets after creating the codespace, they won't be accessible in the codespace until after a restart. You can verify your secrets are accessible in the codespace by typing in echo {SECRET_NAME} and ensuring the secret is output.

Nothing looks out of sorts from what I can see but can investigate further once you verify the two questions above!