Skip to content

Commit fe3a97b

Browse files
committed
[BUG] Allow PR Title checks on fork PRs
Signed-off-by: John McCall <john@overturemaps.org>
1 parent 88f565a commit fe3a97b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/validate-pr-title.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,18 @@ name: Validate PR Title
2323

2424
on:
2525
workflow_call:
26-
pull_request:
26+
pull_request_target:
2727
types:
2828
- opened
2929
- reopened
3030
- edited
3131
- synchronize
3232

33+
# pull_request_target runs with write permissions so this workflow works for fork PRs.
34+
# SECURITY: This workflow must never check out or execute code from the PR branch.
35+
# If you need to add a step that does so, use the workflow_run pattern instead.
3336
permissions:
37+
contents: none
3438
pull-requests: write
3539
issues: write
3640
statuses: write

0 commit comments

Comments
 (0)