Unauthorized to download an org's github package via nuget #178425
Replies: 6 comments 3 replies
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
GitHub Packages for NuGet currently require a classic Personal Access Token, not a fine-grained one. Make sure your token has Check that your and matches your organization name exactly. Also verify that:
If |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
Fix steps 
• Then run with env var set: Quick commands (alternative to nuget.config)  Why curl works but NuGet fails  Do those in order: SSO authorize the classic PAT, fix the feed URL, align nuget.config keys, and check org package policies. After that, installs should work. |
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.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have generated a classic token under my settings with all repo permissions, and read write delete permissions for packages
I have added that token as a secret for the repository
I used that secret for the github actions that publish the package
The package is correctly published (as a private one) and I can clearly see it listed in the org's package page
I have set the my nuget config credentials to be my personal username and the generated token as pwd
I can successfully curl into the org's packages index.json
Yet, when I try to install the package via nuget, it fails with an authentication error
I have also tried to use a fine grained token but there are no package permissions listed for those.
What is going wrong here, how can I access the published package
Beta Was this translation helpful? Give feedback.
All reactions