From 153dd38ea35024638e6ec0b78241ccba0b800401 Mon Sep 17 00:00:00 2001 From: Jacek Date: Mon, 30 Mar 2026 22:30:07 -0500 Subject: [PATCH] fix(ci): skip integration tests for fork PRs Fork PRs do not have access to repository secrets. The integration-tests job calls JSON.parse(process.env.INTEGRATION_CERTS) which crashes with an empty string, causing 24 out of 30 jobs to fail immediately. Skip the entire integration-tests job for fork PRs by checking that the head repo matches the base repo, using the same pattern already used in the check-permissions job. --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d366c2c9dbb..c3bf58f0b9d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -274,7 +274,9 @@ jobs: integration-tests: needs: [check-permissions, build-packages] - if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }} + if: >- + ${{ (github.event_name != 'pull_request' || github.event.pull_request.draft == false) + && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }} name: Integration Tests (${{ matrix.test-name }}, ${{ matrix.test-project }}${{ matrix.next-version && format(', {0}', matrix.next-version) || '' }}) permissions: contents: read