From 403da283c50aa1d0903159ffdff9dcce2b5d8d65 Mon Sep 17 00:00:00 2001 From: Martin Swinkels Date: Tue, 17 Feb 2026 08:58:27 +0100 Subject: [PATCH] fix(pr-code-testing): Update badge publishing condition to handle forked pull requests --- .github/workflows/pr-code-testing.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-code-testing.yml b/.github/workflows/pr-code-testing.yml index b7353d4..4a3ab36 100644 --- a/.github/workflows/pr-code-testing.yml +++ b/.github/workflows/pr-code-testing.yml @@ -286,7 +286,11 @@ jobs: name: Publish Badges runs-on: ubuntu-latest needs: test - if: ${{ needs.test.outputs.has_src_changes == 'true' && success() }} + if: >- + ${{ + needs.test.outputs.has_src_changes == 'true' && success() && + (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) + }} steps: - name: Verify gist access