diff --git a/.github/workflows/add-to-project.yml b/.github/workflows/add-to-project.yml index 93b7c78b6a..e289d6c5c1 100644 --- a/.github/workflows/add-to-project.yml +++ b/.github/workflows/add-to-project.yml @@ -3,8 +3,13 @@ name: Add Issue/PR to Project on: issues: types: [opened] - pull_request: - types: [opened] + # Use the base repository's workflow and secret for fork PR metadata. + # Do not check out or execute pull request code in this workflow. + pull_request_target: + types: [opened, reopened] + +# Project access comes from PROJECT_PAT; the default token needs no permissions. +permissions: {} jobs: add_to_project: