From ed0d785c7d217bcc3a286a3c4dbf1775fe7eca11 Mon Sep 17 00:00:00 2001 From: CodeRabbit Automation Date: Tue, 12 May 2026 09:56:43 -0700 Subject: [PATCH] Block fork pull request workflow jobs --- .github/workflows/node.js.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yaml b/.github/workflows/node.js.yaml index a6656bb..dd9bdb5 100644 --- a/.github/workflows/node.js.yaml +++ b/.github/workflows/node.js.yaml @@ -13,6 +13,7 @@ on: jobs: test: + if: ${{ github.event.pull_request == null || github.event.pull_request.head.repo.full_name == github.repository }} runs-on: ubuntu-latest steps: @@ -66,7 +67,7 @@ jobs: needs: - test - if: failure() && github.event_name != 'merge_group' && github.actor != 'github-actions[bot]' && github.actor != 'nektos/act' + if: ${{ (github.event.pull_request == null || github.event.pull_request.head.repo.full_name == github.repository) && (failure() && github.event_name != 'merge_group' && github.actor != 'github-actions[bot]' && github.actor != 'nektos/act') }} steps: - uses: actions/checkout@v6