diff --git a/.github/workflows/autoassign.yml b/.github/workflows/autoassign.yml index 77bef44..270236f 100644 --- a/.github/workflows/autoassign.yml +++ b/.github/workflows/autoassign.yml @@ -1,9 +1,12 @@ name: Auto Assign - +# pull_request_target (not pull_request) so assignment works on +# fork-submitted PRs; fork pull_request runs get a read-only token. +# Safe because this workflow never checks out or executes PR code. +# The assignee comes from the AUTO_ASSIGNEE organization variable. on: issues: types: [opened] - pull_request: + pull_request_target: types: [opened] permissions: @@ -12,9 +15,4 @@ permissions: jobs: auto-assign: - # Skip auto-assign for pull requests from forks due to GITHUB_TOKEN permission restrictions - if: github.event_name == 'issues' || github.event.pull_request.head.repo.full_name == github.repository uses: ApolloAutomation/Workflows/.github/workflows/autoassign.yml@main - with: - assignees: bharvey88 - num-of-assignees: 1