Skip to content

Commit 4efb705

Browse files
committed
docs: warn that GitHub blocks pull_request_target from December 2
1 parent fb26099 commit 4efb705

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎docs/fork-pr-comments.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,16 @@ that forbids it — `pull_request_target` runs in the context of the base reposi
6060
`GITHUB_TOKEN` has the permissions your workflow asks for and `pr-comments: true` works
6161
on fork pull requests.
6262

63+
> [!IMPORTANT]
64+
> From December 2, 2026, GitHub blocks `pull_request_target` by default in public
65+
> repositories on github.com that have no Actions event policy of their own
66+
> ([changelog](https://github.blog/changelog/2026-09-17-workflow-execution-protections-in-github-actions-generally-available)).
67+
> After that date the workflow below stops running unless a policy allows the event. To
68+
> keep it, add one under **Settings → Actions → Policies** that permits
69+
> `pull_request_target` for this workflow file only
70+
> ([Control workflow execution](https://docs.github.com/actions/how-tos/administer/control-workflow-execution)).
71+
> The App needs no such policy.
72+
6373
```yaml
6474
on:
6575
pull_request_target:

0 commit comments

Comments
 (0)