From ef5fe0d652e4b5e53b6cbe80e537718467f857a2 Mon Sep 17 00:00:00 2001 From: Brian Schubert Date: Sun, 22 Mar 2026 12:01:08 -0400 Subject: [PATCH] Skip Codecov upload step on forks --- .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 199f3563..690f8c7c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -94,7 +94,9 @@ jobs: - name: Upload coverage reports to Codecov uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de - if: ${{ (github.event_name == 'push' || github.event_name == 'pull_request') }} + if: >- + github.repository == 'python/typing_extensions' + && (github.event_name == 'push' || github.event_name == 'pull_request') with: token: ${{ secrets.CODECOV_ORG_TOKEN }} flags: ${{ matrix.python-version }}