mirror of
https://gitea.com/actions/checkout.git
synced 2026-06-15 23:30:09 -05:00
update urls
This commit is contained in:
@@ -162,8 +162,11 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
|
|||||||
github-server-url: ''
|
github-server-url: ''
|
||||||
|
|
||||||
# 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`. See [Pwn Requests](todo:need-link) for
|
# `pull_request_target` or `workflow_run`. These workflows run with the base
|
||||||
# the risks. Set to `true` only after reviewing the risks.
|
# repository's GITHUB_TOKEN, secrets, default-branch cache scope, and runner
|
||||||
|
# access; fetching a fork's code in that trusted context is the "pwn request"
|
||||||
|
# supply-chain attack pattern. Set to `true` only after reviewing the risks at
|
||||||
|
# https://gh.io/allow-unsafe-pr-checkout.
|
||||||
# Default: false
|
# Default: false
|
||||||
allow-unsafe-pr-checkout: ''
|
allow-unsafe-pr-checkout: ''
|
||||||
```
|
```
|
||||||
|
|||||||
+5
-2
@@ -101,8 +101,11 @@ inputs:
|
|||||||
allow-unsafe-pr-checkout:
|
allow-unsafe-pr-checkout:
|
||||||
description: >
|
description: >
|
||||||
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`. See [Pwn Requests](todo:need-link)
|
`pull_request_target` or `workflow_run`. These workflows run with the
|
||||||
for the risks. Set to `true` only after reviewing the risks.
|
base 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" supply-chain attack pattern. Set to `true` only after
|
||||||
|
reviewing the risks at https://gh.io/allow-unsafe-pr-checkout.
|
||||||
default: false
|
default: false
|
||||||
outputs:
|
outputs:
|
||||||
ref:
|
ref:
|
||||||
|
|||||||
Vendored
+3
-2
@@ -2833,8 +2833,9 @@ 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 fork's code in that trusted context is a ` +
|
||||||
`"pwn request" supply-chain attack pattern. To opt in after reviewing the risk, set ` +
|
`"pwn request" supply-chain attack pattern. To opt in after reviewing the risks at ` +
|
||||||
`'allow-unsafe-pr-checkout: true' on the actions/checkout step.`);
|
`https://gh.io/allow-unsafe-pr-checkout, set '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) {
|
||||||
|
|||||||
@@ -75,8 +75,9 @@ export function assertSafePrCheckout(input: IUnsafePrCheckoutInput): void {
|
|||||||
`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 fork's code in that trusted context is a ` +
|
||||||
`"pwn request" supply-chain attack pattern. To opt in after reviewing the risk, set ` +
|
`"pwn request" supply-chain attack pattern. To opt in after reviewing the risks at ` +
|
||||||
`'allow-unsafe-pr-checkout: true' on the actions/checkout step.`
|
`https://gh.io/allow-unsafe-pr-checkout, set 'allow-unsafe-pr-checkout: true' on the ` +
|
||||||
|
`actions/checkout step.`
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user