mirror of
https://github.com/actions/checkout.git
synced 2026-05-23 01:55:54 +00:00
feat: warn on non-default checkout during pull_request_target
Signed-off-by: Kengo TODA <skypencil@gmail.com>
This commit is contained in:
parent
900f2210b1
commit
5a3004714a
5 changed files with 149 additions and 2 deletions
|
|
@ -160,6 +160,13 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
|
|||
# running from unless specified. Example URLs are https://github.com or
|
||||
# https://my-ghes-server.example.com
|
||||
github-server-url: ''
|
||||
|
||||
# Suppress the warning when pull_request_target checks out a non-default branch
|
||||
# from the workflow repository. Only set this to true when you understand the
|
||||
# security risk of running untrusted pull request code in a privileged context.
|
||||
# https://securitylab.github.com/resources/github-actions-preventing-pwn-requests/
|
||||
# Default: false
|
||||
dangerously-checkout-non-default-branch: ''
|
||||
```
|
||||
<!-- end usage -->
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue