List packages rest api returns empty list bug #169223
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.
-
Select Topic Area
Bug
Body
I think I might be encountering a bug when using the GitHub REST API (and graphql API as well) to list all container packages. When doing a GET request to
https://api.github.com/orgs/{ORG}/packages?package_type=container
the API responds with status code 200, but an empty list. However, when I make a request to a container which I know exists, it succesfully returns the object, eg: GEThttps://api.github.com/orgs/{ORG}/packages/container/{NAME}
. In the response I can verify that it's accessible and has the same package type, but it does not get returned. What's even weirder that my private nuget packages are getting returned when calling the endpoint withnuget
as the package_type parameter:https://api.github.com/orgs/{ORG}/packages?package_type=nuget
.For authentication I am using a PAT with
packages:read
permission, it is not expired. SSO authorisation has been granted to the PAT. But since I can get the package details, I assume the token is fine.Beta Was this translation helpful? Give feedback.
All reactions