You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello @sjrulandch👋,
Thank you for the suggestion!
The permissions key is used to modify the default permissions granted to the GITHUB_TOKEN. You can refer to the following GitHub official documentation links for more details:
Configuring the default GITHUB_TOKEN permissions: This section details the repository settings under "Workflow permissions," where you can choose whether you want the GITHUB_TOKEN to have read and write access for all permissions (the permissive setting), or just read access for the contents and packages permissions (the restricted setting).
Publish NuGet packages to GitHub Packages: This documentation provides comprehensive instructions on publishing NuGet packages, including setting the necessary permissions.
We feel it may not be necessary to include permissions: packages: write in the example for the setup-dotnet action, as specifying this depends on the individual repository settings related to the default permissions granted to the GITHUB_TOKEN and the specific project requirements.
Hope this clarifies. Please let us know in case of any further concerns. Thank you!
For the GHP example, it would have been nice to have the following mentioned:
The text was updated successfully, but these errors were encountered: