From 7134f2f044b7b1f4b2a60634c2f9bfdae7f1a552 Mon Sep 17 00:00:00 2001 From: Andrea SCORTI Date: Wed, 9 Oct 2024 16:50:05 +0200 Subject: [PATCH] chore(codecov): fixing an issue on release 4.6.0 action codecov oidc does not work on PR from a fork (issue: https://github.com/codecov/codecov-action/issues/1594) --- .github/workflows/build.yml | 2 +- .github/workflows/e2e-tests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6eb3df7baa..fc53a5e11c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -70,7 +70,7 @@ jobs: files: core/coverage/lcov.info,core-bootstrap/coverage/lcov.info,angular/headless/coverage/lcov.info,svelte/preprocess/coverage/lcov.info flags: unit disable_search: true - use_oidc: true + use_oidc: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork) }} - run: npm run -w verdaccio verdaccio-publish - if: inputs.version != '' run: | diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index e7d9b1d89e..e5fe9832fe 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -47,7 +47,7 @@ jobs: with: directory: coverage flags: e2e - use_oidc: true + use_oidc: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork) }} - uses: actions/setup-node@v4 with: node-version: '20.x'