From a777888d8ae75480a52d3515282dd67458fd9269 Mon Sep 17 00:00:00 2001 From: Kim Altintop Date: Wed, 23 Jul 2025 14:51:16 +0200 Subject: [PATCH 1/2] ci: Skip the Unity tests if the PR is an external contribution We don't want to leak the license information. Alternatively, we could just make the check non-required. --- .github/workflows/csharp-test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/csharp-test.yml b/.github/workflows/csharp-test.yml index befeefe728c..e079eefab66 100644 --- a/.github/workflows/csharp-test.yml +++ b/.github/workflows/csharp-test.yml @@ -140,3 +140,6 @@ jobs: UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} + # Skip if this is an external contribution. + # The license secrets will be empty, so the step would fail anyway. + if: !github.event.pull_request.head.repo.fork From b4013eb835b75b960108d14e281be0805a93a688 Mon Sep 17 00:00:00 2001 From: Kim Altintop Date: Thu, 24 Jul 2025 19:03:48 +0200 Subject: [PATCH 2/2] fixup! ci: Skip the Unity tests if the PR is an external contribution --- .github/workflows/csharp-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/csharp-test.yml b/.github/workflows/csharp-test.yml index e079eefab66..fed8d441dd8 100644 --- a/.github/workflows/csharp-test.yml +++ b/.github/workflows/csharp-test.yml @@ -142,4 +142,4 @@ jobs: UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} # Skip if this is an external contribution. # The license secrets will be empty, so the step would fail anyway. - if: !github.event.pull_request.head.repo.fork + if: ${{ !github.event.pull_request.head.repo.fork }}