From 1b1d1902627be6205dc15500cffd19bd4a8dacb7 Mon Sep 17 00:00:00 2001 From: Anant Thazhemadam Date: Fri, 1 Mar 2024 14:18:31 +0530 Subject: [PATCH] ci: explicitly specify token for codecov Explicitly specify the codecov token to be used (i.e., `CODECOV_TOKEN`), given that the latest v4 release of the codecov action requires it to be able to generate coverage reports. Additionally, fail CI if coverage reporting fails, since coverage is an important enough metric for us to ensure that it's tracked consistently. --- .github/workflows/CI.yml | 2 ++ .github/workflows/Documentation.yml | 2 ++ .github/workflows/Downstream.yml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 9a80cef96..615d62f27 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -45,3 +45,5 @@ jobs: - uses: codecov/codecov-action@v4 with: file: lcov.info + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true diff --git a/.github/workflows/Documentation.yml b/.github/workflows/Documentation.yml index d26b9dd03..d29f9a260 100644 --- a/.github/workflows/Documentation.yml +++ b/.github/workflows/Documentation.yml @@ -26,3 +26,5 @@ jobs: - uses: codecov/codecov-action@v4 with: file: lcov.info + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true diff --git a/.github/workflows/Downstream.yml b/.github/workflows/Downstream.yml index 152b34c9f..cd46e4575 100644 --- a/.github/workflows/Downstream.yml +++ b/.github/workflows/Downstream.yml @@ -82,3 +82,5 @@ jobs: - uses: codecov/codecov-action@v4 with: file: lcov.info + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true