lhotari opened a new pull request, #22568:
URL: https://github.com/apache/pulsar/pull/22568

   ### Motivation
   
   This is required when running GitHub Actions in a fork that has been 
configured with restrictive access. 
   
   - [GitHub Actions workflow or job 
permissions](https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs).
 
   - [the default 
permissions](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token)
   
   Explained in "[Enforcing a policy for workflow permissions in your 
enterprise](https://docs.github.com/en/enterprise-cloud@latest/admin/policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-github-actions-in-your-enterprise#enforcing-a-policy-for-workflow-permissions-in-your-enterprise)":
   > Anyone with write access to a repository can modify the permissions 
granted to the GITHUB_TOKEN, adding or removing access as required, by editing 
the permissions key in the workflow file. For more information, see 
[permissions](https://docs.github.com/en/enterprise-cloud@latest/actions/using-workflows/workflow-syntax-for-github-actions#permissions).
   
   
   ### Modifications
   
   Add explicit "permissions" to each workflow.
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc` <!-- Your PR contains doc changes. -->
   - [ ] `doc-required` <!-- Your PR changes impact docs and you will update 
later -->
   - [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
   - [ ] `doc-complete` <!-- Docs have been already added -->


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to