Login inside a github action #26344
-
Hi! I am building a github action that uses a docker image. To download that image, it requires authentication. I have tried to do a docker login in the wf before calling that action, but i am still receiving an unauthorised error. Any idea what should i do? Should i do the authentication inside the action itself? My action has this inside:
How should i do the authentication? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
I don’t think you can, the only options described in the documentation are using a Dockerfile in your repository, or using a public image: Metadata syntax for GitHub Actions - GitHub Docs |
Beta Was this translation helpful? Give feedback.
-
Thats a big limitation… is there any way to make it work with the pre tag? It is, do a docker login with a PAT sent as input? Would it work? |
Beta Was this translation helpful? Give feedback.
-
Which makes it pretty clear that private images are not supported. |
Beta Was this translation helpful? Give feedback.
-
Thanks. Do you know what is the best way to ask github if this will be supported? Do they usually answer here or do i need to raise an issue to any git where they manage new features? |
Beta Was this translation helpful? Give feedback.
-
There are some Github people around here, so I hope they’ll see it. I don’t see any obvious category for feature requests on the contact page. |
Beta Was this translation helpful? Give feedback.
pre-entrypoint
uses the same image, so I’m pretty sure it won’t. I also just noticed theruns.image
documentation explicitly says:Which makes it pretty clear that private images are not supported.