Skip to content

Commit 1b1d190

Browse files
committed
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.
1 parent 74ac3fa commit 1b1d190

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,5 @@ jobs:
4545
- uses: codecov/codecov-action@v4
4646
with:
4747
file: lcov.info
48+
token: ${{ secrets.CODECOV_TOKEN }}
49+
fail_ci_if_error: true

.github/workflows/Documentation.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@ jobs:
2626
- uses: codecov/codecov-action@v4
2727
with:
2828
file: lcov.info
29+
token: ${{ secrets.CODECOV_TOKEN }}
30+
fail_ci_if_error: true

.github/workflows/Downstream.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,5 @@ jobs:
8282
- uses: codecov/codecov-action@v4
8383
with:
8484
file: lcov.info
85+
token: ${{ secrets.CODECOV_TOKEN }}
86+
fail_ci_if_error: true

0 commit comments

Comments
 (0)