Thứ Năm, 23 tháng 3, 2023

403 Forbidden when adding nuget package from github

When trying add a nuget package from github "dotnet add package 'your package' --version 'your version'", catch 403 forbidden error: Your request could not be authenticated by the GitHub Packages service. Please ensure your access token is valid and has the appropriate scopes configured. It maybe because you do not authorize your github token sso (if you are working in a company using sso):
Go to token setting and choose to config sso as above then you can add that nuget package.

Không có nhận xét nào:

Đăng nhận xét