-
Notifications
You must be signed in to change notification settings - Fork 59.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify How the permissions are calculated for a workflow job
#32398
Comments
@jsoref Sorry to hear about the concussion 💛 I'll get this triaged for review ✨ |
Thanks for opening an issue! We've triaged this issue for technical review by a subject matter expert 👀 |
@jsoref Hello! 👋 Our engineering team reviewed, and agreed with your proposed clarification. They also wanted to mention the following -
With that adjustment in mind, you or anyone else is welcome to open a PR with this update ✨ CC @jc-clark just for visibility 💛 |
Hello @nguyenalex836, I have read through the conversation and the suggestions from the engineering team. Please review the proposed update for the documentation to clarify the behavior of workflow job permissions. The read-only adjustment applies to all pull request-related events triggered on a fork PR except for the Updated section:
Is this good to go? |
@Vikranth3140: the You probably want to include:
(That text appears in places like https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token -- see https://github.com/search?q=repo%3Agithub%2Fdocs%20see%20%22%5BAUTOTITLE%5D(%2Factions%2Fusing-workflows%2Fevents-that-trigger-workflows).%22&type=code) |
Hello @jsoref, Thank you for the feedback. I understand the need to clarify the read-only behaviour without specifying Additionally, I will include a reference link for further information:
Is this approach good to go? |
The order of the logic doesn't really work for me. It's convoluted. I wouldn't use except there. I suspect I'd want "isn't a pull_request_target and the send... Isn't checked". I don't have time to think about it further today. Maybe someone else will before I get back... |
@Vikranth3140 Hello! 👋 Thank you for opening a PR for this issue! Our team will provide feedback on your proposed changes in the PR you opened 💛 #33566 @jsoref Thank you for providing feedback on the proposed changes ✨ |
Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/actions/security-guides/automatic-token-authentication#how-the-permissions-are-calculated-for-a-workflow-job
What part(s) of the article would you like to see updated?
Should be changed to say clarify that if the workflow was triggered by a pull request and the job event is
pull_request_target
then write permissions will not be changed to read only.I'm still recovering from a concussion, but here's my first attempt at fixing this text:
Additional information
No response
The text was updated successfully, but these errors were encountered: