Skip to content

Commit 92772cb

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

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/omf_pr_checks.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@
1010
name: OMF PR Checks
1111

1212
on:
13-
pull_request:
13+
pull_request_target:
1414
types: [opened, reopened, edited, synchronize]
1515

16+
# pull_request_target runs with write permissions so this workflow works for fork PRs.
17+
# SECURITY: This workflow must never check out or execute code from the PR branch.
18+
# If you need to add a step that does so, use the workflow_run pattern instead.
1619
permissions:
17-
contents: read
20+
contents: none
1821
issues: write
1922
pull-requests: write
2023
statuses: write

0 commit comments

Comments
 (0)