Skip to content

Commit f0fc378

Browse files
ondrejmirtesclaude
andcommitted
Use pull_request_target for close-issues workflow to support fork PRs
The workflow needs access to PHPSTAN_BOT_TOKEN to close linked issues, which is unavailable for pull_request events from forks. pull_request_target runs in the base repo context with access to secrets. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent aa18181 commit f0fc378

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/close-issues-on-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
name: Close issues from merged PRs
44

55
on:
6-
pull_request:
6+
pull_request_target:
77
branches:
88
- "2.1.x"
99
types:

0 commit comments

Comments
 (0)