From 67a4b8df6a9f73f2676eb9c367cd0c8b77091f41 Mon Sep 17 00:00:00 2001 From: fullstackjam Date: Mon, 30 Mar 2026 19:50:10 +0800 Subject: [PATCH] ci: skip codecov upload for fork PRs OIDC token is unavailable for fork pull requests due to GitHub's security model. Skip the upload step when the PR comes from a fork to prevent false CI failures. Coverage is still uploaded on pushes to main and on PRs from the same repository. --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 06ac6e8..08a097f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -75,6 +75,7 @@ jobs: " - name: Upload coverage to Codecov + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository uses: codecov/codecov-action@v4 with: use_oidc: true