-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
401 Unauthorized during copa action #16
Comments
@BartoszBrodzinski-TomTom can you check the visibility of the image you are trying to pull? You can try adding a step before the copa action to check that you have access. |
I got the same issue, |
@zhangchl007 can you try the same as the comment above to ensure you have access? |
Please refer to the error msg info below. the image is here locally, not sure why it still try to pull the image |
@zhangchl007 Currently, Copa does not use the local image if it is present. We are working on this feature and it should be available in the next Copa release. In order to patch this image through the copa-action right now, you need to make sure there is access to pull. |
this is the steps, I already logged in the registry repo. why does it still report this login issue? |
@ashnamehrotra it's my fault , I fixed this issue, we need to login docker with privilege permission |
@zhangchl007 do you think any of copa docs can be improved to make sure others don't run into the same issue? |
|
@ashnamehrotra for local images, we can document https://github.com/crazy-max/ghaction-setup-docker#daemon-configuration to set up containerd image store |
There's a missing very important piece of information when it comes to ACR (azure container registry), in registry configuration you need to set the key:
otherwise copa won't be able to connect. |
@ealasgarov that is correct today. after #37 merges, you'll be able to connect to private registries. |
I still get the 401 error:
I use docker login action as follows:
And the image is fetched successfully. my job in workflow file has following permissions:
On the other hand when I make my container registry public in GH settings, everything works correctly. |
Hi @bart-brodz we haven't yet merged the change that allows for patching local/private images. We are waiting on another copa release before merging #37 which should be done today. |
@bart-brodz The new copa action v1.2.0 is released. Using this with copa v0.6.1 will allow you to patch local/private images. |
Hi, I'm trying to use the copa-action, for images that I store in GHCR
Copa patch action fails with:
Of course, I've added the docker login action at the top of workflow and the image downloads successfully.
The text was updated successfully, but these errors were encountered: