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 }}