Githubapp Token created hasn't permissions (help me please) #152781
Replies: 1 comment
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
Hi,
I'm creating an githubapp for interact with repositories and pacakges (containers).
The main idea is run an workflow to build a docker image and push in package repositories.
Then, in the githubapp I create a token to pull this docker imagen, but dont work.
The githubapp was created with probot framework.
Generate Token:
And then, with the token, and try to gets the packages installed with:
https://api.github.com/orgs//packages?package_type=container
or
https://api.github.com/users//packages?package_type=container
But, both endpoints returns:
{ "message": "Invalid argument.", "documentation_url": "https://docs.github.com/rest/packages/packages#list-packages-for-an-organization", "status": "400" }Can I say me that was wrong?
The githubapp has the following permissions:
Permissions
The container image has pushed successfully in the
ghcr.io/(<username> or <orgname>)/<reponame>:latestbut I couldn't pull this image with the generated token from githubapp.Capture generating and testing my endpoint:

Get /installation/repositories

Get https://api.github.com/users/ariel2k/packages/container/test-repo-pipeline

Package, linked to the repository

BUT with a PAT (Personal Access Token) the enpoint /containers/test-repo-pipeline WOKRS!

I need help.
Beta Was this translation helpful? Give feedback.
All reactions