From 0e51dba278000a7cc8010f1852ecb45923d56439 Mon Sep 17 00:00:00 2001 From: panbingkun Date: Tue, 14 Jan 2025 11:05:02 +0800 Subject: [PATCH] [SPARK-50633][FOLLOWUP] Set `CODECOV_TOKEN` with environment variables ### What changes were proposed in this pull request? The pr aims to set `CODECOV_TOKEN` with `environment variables` for `codecov/codecov-action`. ### Why are the changes needed? Based on the suggestions of the `codecov/codecov-action` community, we will try setting it up in a different way to see if `codecov/codecov-action` can succeed. https://github.com/codecov/codecov-action/issues/1738#issuecomment-2588783885 image ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Manually check. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #49477 from panbingkun/SPARK-50633_FOLLOWUP_1. Authored-by: panbingkun Signed-off-by: panbingkun --- .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 292971092b70d..8040169fcb2c8 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -622,9 +622,10 @@ jobs: - name: Upload coverage to Codecov if: fromJSON(inputs.envs).PYSPARK_CODECOV == 'true' uses: codecov/codecov-action@v5 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: files: ./python/coverage.xml - token: ${{ secrets.CODECOV_TOKEN }} flags: unittests name: PySpark verbose: true