-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Act step using docker silently fails when the image access is forbidden #2609
Comments
act_runner is using this fork https://gitea.com/gitea/act. Both act cli (as last line The executor should return the error as return value, are you saying act_runner eats such error? If yes, there might be more errors like this one in this codebase. |
Hey @ChristopherHX, thank you for the reply. Yes, I am aware of the soft mirror, I will still send a PR there too if that works. The error is being completely eaten, simply because the logDockerResponse receives a nil reader and bails out immediately, and because in this case (where I logged in with a different action), it results in Mind that this is an edge case, the docker client already has valid credentials, but the credentials are not good enough to reach the image I'm trying to pull (hence the "forbidden" rather than "unauthorized") The last line in the method returns a I have another version with a lot more logging (and some rewrites) I used to troubleshoot this one, but didn't wanted to push that one as I thought that was going to be a lot more intrusive. |
Which makes me think that the logging should be happening in line 64 instead of 76. Let me know if you would like me to update the PR, I would gladly do so. |
Bug report info
Describe issue
When docker is correctly logged in to a registry, but the user does not have permission to access the container it is trying to pull,
gitea act_runner
silently fails the step without providing any feedback on the problem.Upon a lot of debugging, I reached the error message:
The problem is not that access is forbidden, as expected, but that failure is completely silent.
Apologies if this arrives from
gitea
, but after reviewing the code I see that this issue happens insideact
itself, as that's the one that is handling the step.Link to GitHub repository
No response
Workflow content
Relevant log output
Additional information
No response
The text was updated successfully, but these errors were encountered: