diff --git a/.github/actions/build_and_coverage/action.yml b/.github/actions/build_and_coverage/action.yml index 2e55d63d..13dcb76b 100644 --- a/.github/actions/build_and_coverage/action.yml +++ b/.github/actions/build_and_coverage/action.yml @@ -1,6 +1,11 @@ name: "Build & coverage" description: "Check the code, build, testing & generate project coverage" +inputs: + CODECOV_TOKEN: + description: "The token to upload to codecov" + required: true + runs: using: "composite" steps: @@ -69,7 +74,7 @@ runs: fail_ci_if_error: true verbose: false flags: 'spark-${{ env.SPARK_VERSION }}.x' - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ inputs.CODECOV_TOKEN }} # CLEAN PROJECT BEFORE CACHE - name: Cleaning before cache 🚯 diff --git a/.github/workflows/wc_build.yml b/.github/workflows/wc_build.yml index a33f7af6..8918d867 100644 --- a/.github/workflows/wc_build.yml +++ b/.github/workflows/wc_build.yml @@ -33,3 +33,5 @@ jobs: env: SPARK_VERSION: ${{ matrix.spark }} SCOPE: ${{ matrix.scope }} + with: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}