Fix coverage upload from forks: Attempt #2 (#5514)

The fix is based on the following comment:

https://github.com/codecov/codecov-action/issues/1594#issuecomment-2394913029
This commit is contained in:
Šarūnas Nejus 2024-11-23 20:48:35 +00:00 committed by GitHub
commit 37a2ceccd1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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