From db71444fe7e88400d39144fdc5ff1191b584204c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0ar=C5=ABnas=20Nejus?= Date: Sat, 23 Nov 2024 01:13:16 +0000 Subject: [PATCH] Disable OIDC for coverage uploads from forks This is based on the following comment: https://github.com/codecov/codecov-action/issues/1594#issuecomment-2394913029 --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 18c77b2d27..ca9b4d3abd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -75,4 +75,4 @@ jobs: uses: codecov/codecov-action@v4 with: files: ./coverage.xml - use_oidc: true + use_oidc: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork) }}