mirror of
https://github.com/actions/checkout.git
synced 2026-06-16 13:18:41 +07:00
update description and url again
This commit is contained in:
@@ -164,9 +164,9 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
|
|||||||
# Required to check out fork pull request code from a workflow triggered by
|
# Required to check out fork pull request code from a workflow triggered by
|
||||||
# `pull_request_target` or `workflow_run`. These workflows run with the base
|
# `pull_request_target` or `workflow_run`. These workflows run with the base
|
||||||
# repository's GITHUB_TOKEN, secrets, default-branch cache scope, and runner
|
# repository's GITHUB_TOKEN, secrets, default-branch cache scope, and runner
|
||||||
# access; fetching a fork's code in that trusted context is a "pwn request"
|
# access; fetching and executing a fork's code in that trusted context commonly
|
||||||
# supply-chain attack pattern. Set to `true` only after reviewing the risks at
|
# leads to "pwn request" vulnerabilities. Set to `true` only after reviewing the
|
||||||
# https://gh.io/allow-unsafe-pr-checkout.
|
# risks at https://gh.io/securely-using-pull-request-checkout.
|
||||||
# Default: false
|
# Default: false
|
||||||
allow-unsafe-pr-checkout: ''
|
allow-unsafe-pr-checkout: ''
|
||||||
```
|
```
|
||||||
|
|||||||
+3
-3
@@ -103,9 +103,9 @@ inputs:
|
|||||||
Required to check out fork pull request code from a workflow triggered by
|
Required to check out fork pull request code from a workflow triggered by
|
||||||
`pull_request_target` or `workflow_run`. These workflows run with the
|
`pull_request_target` or `workflow_run`. These workflows run with the
|
||||||
base repository's GITHUB_TOKEN, secrets, default-branch cache scope, and
|
base repository's GITHUB_TOKEN, secrets, default-branch cache scope, and
|
||||||
runner access; fetching a fork's code in that trusted context is a
|
runner access; fetching and executing a fork's code in that trusted
|
||||||
"pwn request" supply-chain attack pattern. Set to `true` only after
|
context commonly leads to "pwn request" vulnerabilities. Set to `true`
|
||||||
reviewing the risks at https://gh.io/allow-unsafe-pr-checkout.
|
only after reviewing the risks at https://gh.io/securely-using-pull-request-checkout.
|
||||||
default: false
|
default: false
|
||||||
outputs:
|
outputs:
|
||||||
ref:
|
ref:
|
||||||
|
|||||||
Vendored
+4
-4
@@ -2832,10 +2832,10 @@ function assertSafePrCheckout(input) {
|
|||||||
}
|
}
|
||||||
throw new Error(`Refusing to check out fork pull request code from a '${eventName}' workflow. ` +
|
throw new Error(`Refusing to check out fork pull request code from a '${eventName}' workflow. ` +
|
||||||
`This workflow runs with the base repository's GITHUB_TOKEN, secrets, default-branch ` +
|
`This workflow runs with the base repository's GITHUB_TOKEN, secrets, default-branch ` +
|
||||||
`cache scope, and runner access. Fetching fork's code in that trusted context is a ` +
|
`cache scope, and runner access. Fetching and executing a fork's code in that trusted ` +
|
||||||
`"pwn request" supply-chain attack pattern. To opt in after reviewing the risks at ` +
|
`context commonly leads to "pwn request" vulnerabilities. To opt in after reviewing ` +
|
||||||
`https://gh.io/allow-unsafe-pr-checkout, set 'allow-unsafe-pr-checkout: true' on the ` +
|
`the risks at https://gh.io/securely-using-pull-request-checkout, set ` +
|
||||||
`actions/checkout step.`);
|
`'allow-unsafe-pr-checkout: true' on the actions/checkout step.`);
|
||||||
}
|
}
|
||||||
function pushIfSha(target, value) {
|
function pushIfSha(target, value) {
|
||||||
if (typeof value === 'string' && value.length > 0) {
|
if (typeof value === 'string' && value.length > 0) {
|
||||||
|
|||||||
@@ -74,10 +74,10 @@ export function assertSafePrCheckout(input: IUnsafePrCheckoutInput): void {
|
|||||||
throw new Error(
|
throw new Error(
|
||||||
`Refusing to check out fork pull request code from a '${eventName}' workflow. ` +
|
`Refusing to check out fork pull request code from a '${eventName}' workflow. ` +
|
||||||
`This workflow runs with the base repository's GITHUB_TOKEN, secrets, default-branch ` +
|
`This workflow runs with the base repository's GITHUB_TOKEN, secrets, default-branch ` +
|
||||||
`cache scope, and runner access. Fetching fork's code in that trusted context is a ` +
|
`cache scope, and runner access. Fetching and executing a fork's code in that trusted ` +
|
||||||
`"pwn request" supply-chain attack pattern. To opt in after reviewing the risks at ` +
|
`context commonly leads to "pwn request" vulnerabilities. To opt in after reviewing ` +
|
||||||
`https://gh.io/allow-unsafe-pr-checkout, set 'allow-unsafe-pr-checkout: true' on the ` +
|
`the risks at https://gh.io/securely-using-pull-request-checkout, set ` +
|
||||||
`actions/checkout step.`
|
`'allow-unsafe-pr-checkout: true' on the actions/checkout step.`
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user