Run a job from a container using OIDC authentication #123886
Unanswered
dsotirakis
asked this question in
Actions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey all 👋
I have spent a considerable amount of time trying to find a solution for the following problem:
We want to run a job inside a container where the container lives in Google Artifact Registry (GAR). What we do in order to authenticate against our private registry is OIDC. Here's the code:
which essentially uses
docker/login-action
to authenticate to GAR and then exports the creds to an output variable.Then my next job is:
The problem I face is that when the first job is done, as a last step I get:
and so the
password
field in therun_container
job is empty. I have tried the same with:but doesn't work either - github still doesn't let me pass this from the first job to the second one.
Questions:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions