Authorization on Github Packages #69522
Replies: 7 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
-
I'm fairly convinced GITHUB_TOKEN is github broken, for some purposes. I've had a heckuva time recently, whereupon the runner can use GITHUB_TOKEN configured with packages: write to log into ghcr.io just fine, to pull my custom runner container, and I can use a GITHUB_TOKEN of the same configuration to publish maven packages, which is actually the way it needs to be done, to make those images downloadable, via personal access tokens. But if I try to install the maven packages into a springboot service, from another workflow, a GITHUB_TOKEN of the same configuration cannot pull those dependencies. The fact that the token is the problem isn't obvious, because it reports that it simply can't find the dependencies. It doesn't 401. Strangely enough, I only figured this out, because my personal token I generated, which is tied to my github user id, can pull these dependencies, from my local environment. But if I published from my personal token, even my personal token would not be able to read those packages. To say nothing of not wanting to make a personal token companywide, the work-around is to generate a personal token from a "machine user" account, which we wish we didn't have to waste a license on, because two instances of GITHUB_TOKEN should work to read the packages they wrote, if they are configured correctly. |
Beta Was this translation helpful? Give feedback.
-
🕒 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.
-
I had trouble authenticating a Github Action to pull Nuget dependencies from Github Packages using |
Beta Was this translation helpful? Give feedback.
-
How to upload maven packages on GitHub using GitHub token instead of PAT Token? |
Beta Was this translation helpful? Give feedback.
-
export GITHUB_TOKEN=your_personal_access_token echo "//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}" > ~/.npmrc |
Beta Was this translation helpful? Give feedback.
-
🕒 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.
-
Select Topic Area
Question
Body
Hi,
I've run into this error and I don't understand why
Your request could not be authenticated by the GitHub Packages service. Please ensure your access token is valid and has the appropriate scopes configured.
I've got an
GITHUB_TOKEN
with all admin permission that I can give to it and asGITHUB_USER
I tookfelixhennerich
I See no reason for this error but still get it. Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions