Github action - setting up GITHUB_TOKEN permission to publish
Github allows user to publish nuget packages to nuget.pkg.github.
To be able to publish repository, you need a read:write permission configure for your GITHUB_TOKEN. GITHUB_TOKEN are automatically injected into your github actions and normally would have read permission.
You can easy find that out by reviewing your job.
Tbis means you won't be able to publish your packages. You need to configure write permission. To do that, please goto: Your repository -> Settings
Then goto Workflow Permission and choose Read and write permission. Click Save.
Then you will be able to see the permission as follows:
Comments