Skip to content

Commit b49556b

Browse files
committed
Update GitHub Actions permissions for pull request handling
1 parent ea02972 commit b49556b

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/preview-deploy.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,18 @@ on:
55
types:
66
- completed
77

8+
# pull_request_target needs explicit perms; fork PRs default to read-only.
9+
permissions:
10+
contents: read
11+
issues: write
12+
pull-requests: write
13+
814
jobs:
915
deploy:
1016
runs-on: "ubuntu-22.04"
1117
if: >
1218
github.repository_owner == 'php' &&
13-
github.event.workflow_run.event == 'pull_request'
19+
github.event.workflow_run.event == 'pull_request_target'
1420
1521
steps:
1622
- name: Download PR number

0 commit comments

Comments
 (0)