Skip to content

Commit 809c2c5

Browse files
Sharra-writesJarLobwrslatz
committed
Update content/actions/how-tos/security-for-github-actions/security-guides/security-hardening-for-github-actions.md
Co-authored-by: Jaroslav Lobačevski <[email protected]> Co-authored-by: Will Slattum <[email protected]>
1 parent 834a877 commit 809c2c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/actions/reference/security/secure-use.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ There are a number of different approaches available to help you mitigate the ri
121121

122122
### Avoid potentially dangerous workflow triggers
123123

124-
Avoid using the `pull_request_target` and `workflow_run` workflow triggers if not necessary. Only use these workflow triggers when the workflow actually needs the privileged context and access from the target repo to be available in the workflow.
124+
Avoid using the `pull_request_target` workflow trigger if not necessary. Prefer using `workflow_run` for privilege separation between workflows as described in [Keeping your GitHub Actions and workflows secure: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests). Only use these workflow triggers when the workflow actually needs the privileged context.
125125

126126
### Do not use the `pull_request_target` and `workflow_run` workflow triggers with untrusted content
127127

0 commit comments

Comments
 (0)