From 4cb72cf07e732003ca6ac325e5bf0e91dfb645ff Mon Sep 17 00:00:00 2001 From: Ramkumar Chinchani <45800463+rchincha@users.noreply.github.com> Date: Tue, 27 Aug 2024 21:09:01 -0700 Subject: [PATCH] ci: fix coverage upload (#637) Ensure that the coverage upload token is passed correctly. Signed-off-by: Ramkumar Chinchani --- .github/workflows/build.yaml | 5 ++++- .github/workflows/ci.yaml | 4 ++++ .github/workflows/coverage.yaml | 5 ++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 902ea7a1..23f2fcf9 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -26,6 +26,9 @@ on: type: boolean description: 'Should slow tests be run?' default: true + secrets: + codecov_token: + required: true jobs: build: @@ -100,7 +103,7 @@ jobs: - name: Upload code coverage uses: codecov/codecov-action@v4 with: - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.codecov_token }} - name: Upload artifacts uses: actions/upload-artifact@v3 if: ${{ matrix.privilege-level == 'priv' }} diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4dee7251..3b8c59b3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -13,7 +13,11 @@ jobs: uses: ./.github/workflows/build.yaml with: slow-test: false + secrets: + codecov_token: ${{ secrets.CODECOV_TOKEN }} coverage: uses: ./.github/workflows/coverage.yaml with: slow-test: false + secrets: + codecov_token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index 1426c0da..9820da14 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -26,6 +26,9 @@ on: type: boolean description: 'Should slow tests be run?' default: true + secrets: + codecov_token: + required: true jobs: build: @@ -97,7 +100,7 @@ jobs: - name: Upload code coverage uses: codecov/codecov-action@v4 with: - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.codecov_token }} files: coverage-${{ matrix.privilege-level}}.txt - name: Upload artifacts uses: actions/upload-artifact@v3