Skip to content

Commit 51bb678

Browse files
authored
Try pull_request_target instead of pull_request (#19081)
A GitHub action to auto-add milestones were added in #18935 This check has been failing consistently with a 403 error on all PRs coming from forks once they are merged into master. Given the 403, it does indicate a permissions issue likely with the GitHub token used for this. Trying pull_request_target instead of pull_request similar to the existing labeler action which uses the same. Since this specific add-milestone check doesn't export any credentials, I believe using pull_request_target should be okay and should fix the problem.
1 parent de983e4 commit 51bb678

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/pr-merged.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
name: "PR Merged"
2121

2222
on:
23-
pull_request:
23+
pull_request_target:
2424
types: [closed]
2525

2626
jobs:

0 commit comments

Comments
 (0)