From 34ac73ba01a0715891a4243c6d045891b6dfaba9 Mon Sep 17 00:00:00 2001 From: Alok Saldanha Date: Wed, 5 Nov 2025 06:47:20 -0500 Subject: [PATCH] second attempt to skip codecov on PRs from forks --- .github/workflows/pr-checks.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-checks.yaml b/.github/workflows/pr-checks.yaml index 6250cea..8a7c92b 100644 --- a/.github/workflows/pr-checks.yaml +++ b/.github/workflows/pr-checks.yaml @@ -55,7 +55,7 @@ jobs: coverage xml -i - name: "Upload coverage to Codecov" - if: ${{ secrets.CODECOV_TOKEN != '' }} + if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }} uses: codecov/codecov-action@v1 with: token: ${{ secrets.CODECOV_TOKEN }}