Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitHub Packages service authentication issue with nuget

Tags:

nuget

So I started seeing this error when I was working with dotnet tools:

/usr/local/share/dotnet/sdk/6.0.100/NuGet.targets(130,5): warning : Your request could not be authenticated by the GitHub Packages service. Please ensure your access token is valid and has the appropriate scopes configured.

The resources I saw on this were generally pointing to pipeline issues, but that wasn't the case for me.

like image 668
Paul DeVito Avatar asked Jul 19 '26 17:07

Paul DeVito


1 Answers

Not sure what triggered this or why this resolves it for me, but if I disable and reenable my nuget source it works for me.

dotnet nuget list source

should return something like this:

Registered Sources:
  1.  nuget.org [Enabled]
      https://api.nuget.org/v3/index.json

then you want to disable and reenable it:

dotnet nuget disable source nuget.org
dotnet nuget enable source nuget.org
like image 107
Paul DeVito Avatar answered Jul 21 '26 15:07

Paul DeVito



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!