From 5e95567262072bda0a8d920fe50d8cf401c0f2dd Mon Sep 17 00:00:00 2001 From: Ibrahim Halatci Date: Tue, 24 Jun 2025 09:23:46 +0000 Subject: [PATCH] add condition to filter out coverage upload action from PRs from forks as the necessaty secret is not available them and fails the whole pipeline --- .github/workflows/build_and_test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 07b093f04..f9b9f5701 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -396,7 +396,8 @@ jobs: flags: ${{ env.PG_MAJOR }}_citus_upgrade codecov_token: ${{ secrets.CODECOV_TOKEN }} upload-coverage: - if: always() + # secret below is not available for forks so disabling upload action for them + if: ${{ github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request' }} env: CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} runs-on: ubuntu-latest