From 0843f99b5be2232ba20aabe9f061e9c06a81900d Mon Sep 17 00:00:00 2001 From: Aotumuri Date: Sun, 28 Sep 2025 07:48:21 +0900 Subject: [PATCH] use pull_request_target for auto-assign (#2100) ## Description: With pull_request, the default GITHUB_TOKEN has read-only permissions on forked PRs. As a result, the auto-assign action (toshimaru/auto-author-assign) failed with: ``` Error: Resource not accessible by integration. ``` Using pull_request_target allows the workflow to run with write permissions on the base repository, enabling author assignment even for PRs opened from forks ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: aotumuri --- .github/workflows/pr-author.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr-author.yml b/.github/workflows/pr-author.yml index 7b264b166..3302f5c68 100644 --- a/.github/workflows/pr-author.yml +++ b/.github/workflows/pr-author.yml @@ -1,10 +1,8 @@ name: 🧼 PR on: - pull_request: - types: - - edited - - opened + pull_request_target: + types: [opened, reopened] permissions: pull-requests: write