Skip to content

Commit 678aa28

Browse files
committed
update urls
1 parent c2edb9a commit 678aa28

4 files changed

Lines changed: 16 additions & 8 deletions

File tree

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,11 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
162162
github-server-url: ''
163163

164164
# Required to check out fork pull request code from a workflow triggered by
165-
# `pull_request_target` or `workflow_run`. See [Pwn Requests](todo:need-link) for
166-
# the risks. Set to `true` only after reviewing the risks.
165+
# `pull_request_target` or `workflow_run`. These workflows run with the base
166+
# repository's GITHUB_TOKEN, secrets, default-branch cache scope, and runner
167+
# access; fetching a fork's code in that trusted context is the "pwn request"
168+
# supply-chain attack pattern. Set to `true` only after reviewing the risks at
169+
# https://gh.io/allow-unsafe-pr-checkout.
167170
# Default: false
168171
allow-unsafe-pr-checkout: ''
169172
```

action.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,11 @@ inputs:
101101
allow-unsafe-pr-checkout:
102102
description: >
103103
Required to check out fork pull request code from a workflow triggered by
104-
`pull_request_target` or `workflow_run`. See [Pwn Requests](todo:need-link)
105-
for the risks. Set to `true` only after reviewing the risks.
104+
`pull_request_target` or `workflow_run`. These workflows run with the
105+
base repository's GITHUB_TOKEN, secrets, default-branch cache scope, and
106+
runner access; fetching a fork's code in that trusted context is a
107+
"pwn request" supply-chain attack pattern. Set to `true` only after
108+
reviewing the risks at https://gh.io/allow-unsafe-pr-checkout.
106109
default: false
107110
outputs:
108111
ref:

dist/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2833,8 +2833,9 @@ function assertSafePrCheckout(input) {
28332833
throw new Error(`Refusing to check out fork pull request code from a '${eventName}' workflow. ` +
28342834
`This workflow runs with the base repository's GITHUB_TOKEN, secrets, default-branch ` +
28352835
`cache scope, and runner access. Fetching fork's code in that trusted context is a ` +
2836-
`"pwn request" supply-chain attack pattern. To opt in after reviewing the risk, set ` +
2837-
`'allow-unsafe-pr-checkout: true' on the actions/checkout step.`);
2836+
`"pwn request" supply-chain attack pattern. To opt in after reviewing the risks at ` +
2837+
`https://gh.io/allow-unsafe-pr-checkout, set 'allow-unsafe-pr-checkout: true' on the ` +
2838+
`actions/checkout step.`);
28382839
}
28392840
function pushIfSha(target, value) {
28402841
if (typeof value === 'string' && value.length > 0) {

src/unsafe-pr-checkout-helper.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@ export function assertSafePrCheckout(input: IUnsafePrCheckoutInput): void {
7575
`Refusing to check out fork pull request code from a '${eventName}' workflow. ` +
7676
`This workflow runs with the base repository's GITHUB_TOKEN, secrets, default-branch ` +
7777
`cache scope, and runner access. Fetching fork's code in that trusted context is a ` +
78-
`"pwn request" supply-chain attack pattern. To opt in after reviewing the risk, set ` +
79-
`'allow-unsafe-pr-checkout: true' on the actions/checkout step.`
78+
`"pwn request" supply-chain attack pattern. To opt in after reviewing the risks at ` +
79+
`https://gh.io/allow-unsafe-pr-checkout, set 'allow-unsafe-pr-checkout: true' on the ` +
80+
`actions/checkout step.`
8081
)
8182
}
8283

0 commit comments

Comments
 (0)