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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With