From d398f91b60204d8bb2ab086c2946e067d33c01bd Mon Sep 17 00:00:00 2001 From: Anant Thazhemadam Date: Fri, 1 Mar 2024 14:31:33 +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 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index a291475..6247e61 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -30,3 +30,5 @@ jobs: - uses: codecov/codecov-action@v4 with: file: lcov.info + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true