Replies: 1 comment
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Body
Hi, I'm using containerd to push images to ghcr.io, because of some redirection reasons, multiple scopes are added to the token request. However ghcr.io does not ignore the invalid scope, it seems it's only picking the first scope, and returning 403 on the token request if the first scope is not a valid ghcr.io scope.
curl -v https://ghcr.io/token\?scope\=repository%3Agithub-username%2Fimage-path%3Apull\&scope=repository%3Asome-random-registry%3Apullworkingcurl -v https://ghcr.io/token\?scope\=scope=repository%3Asome-random-registry%3Apull\&repository%3Agithub-username%2Fimage-path%3Apullnot working, returning 403The difference is in the first request, I put the github container registry scope as the first scope. And in the second request, I put the I put the github container registry scope as the second scope.
I believe the correct behavior should be ignoring the invalid scope, and return 200 as long as there's one scope valid.
Beta Was this translation helpful? Give feedback.
All reactions