From d8fb876f5c48e3e8ae67b400d432ecae6dfb3de3 Mon Sep 17 00:00:00 2001 From: Juliana Hernandez Date: Wed, 2 Sep 2026 10:52:00 -0400 Subject: [PATCH] Skip the auto-assign job on pull requests from forks. GITHUB_TOKEN is forced read-only for pull_request events originating from a fork, regardless of the permissions block, so the add-assignees call fails with "Resource not accessible by integration". Fork authors are not assignable on this repo anyway, so the call would be a silent no-op even with a writable token. Skip the job instead of failing the check. Co-authored-by: Cursor Signed-off-by: Juliana Hernandez --- .github/workflows/auto-assign-author.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/auto-assign-author.yml b/.github/workflows/auto-assign-author.yml index 36d29f0..e5e799f 100644 --- a/.github/workflows/auto-assign-author.yml +++ b/.github/workflows/auto-assign-author.yml @@ -8,6 +8,9 @@ permissions: jobs: assign: + # GITHUB_TOKEN is forced read-only for pull_request events from forks, so the + # assign API call would 403. Fork authors are not assignable here anyway. + if: github.event.pull_request.head.repo.full_name == github.repository runs-on: ubuntu-latest steps: - uses: toshimaru/auto-author-assign@4d585cc37690897bd9015942ed6e766aa7cdb97f # v3.0.1