Skip to content

Commit 03e2e8b

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 1e63c9f commit 03e2e8b

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
@@ -52,3 +52,5 @@ jobs:
5252
- uses: codecov/codecov-action@v4
5353
with:
5454
files: lcov.info
55+
token: ${{ secrets.CODECOV_TOKEN }}
56+
fail_ci_if_error: true

.github/workflows/Documentation.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ jobs:
2929
- uses: codecov/codecov-action@v4
3030
with:
3131
files: lcov.info
32+
token: ${{ secrets.CODECOV_TOKEN }}
33+
fail_ci_if_error: true

.github/workflows/Downstream.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,5 @@ jobs:
5858
- uses: codecov/codecov-action@v4
5959
with:
6060
file: lcov.info
61+
token: ${{ secrets.CODECOV_TOKEN }}
62+
fail_ci_if_error: true

0 commit comments

Comments
 (0)