From 9858f70742b0019f94b1c0ccc6649e5f9d162fbf Mon Sep 17 00:00:00 2001 From: Mauro Servienti Date: Mon, 16 Nov 2026 19:18:56 +0100 Subject: [PATCH] Trigger the project board workflow on pull_request --- .github/workflows/add-to-project.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/add-to-project.yml b/.github/workflows/add-to-project.yml index 2dcfeb8..ac7afad 100644 --- a/.github/workflows/add-to-project.yml +++ b/.github/workflows/add-to-project.yml @@ -3,15 +3,18 @@ name: Add to project board on: issues: types: [opened, reopened, transferred] - # pull_request_target (not pull_request) so PRs from forks can read the secret. - # Safe here: this workflow never checks out or runs the PR's code. - pull_request_target: + pull_request: types: [opened, reopened] permissions: {} jobs: add-to-project: + # PRs from forks and from Dependabot don't get the secret, so skip them. + if: >- + github.event_name == 'issues' || + (github.event.pull_request.head.repo.full_name == github.repository && + github.actor != 'dependabot[bot]') runs-on: ubuntu-latest steps: - uses: actions/add-to-project@v2.0.1