Skip to content

Commit f3244a6

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 946d968 commit f3244a6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/CI.yml

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

.github/workflows/Downstream.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,5 @@ jobs:
5353
- uses: codecov/codecov-action@v4
5454
with:
5555
file: lcov.info
56+
token: ${{ secrets.CODECOV_TOKEN }}
57+
fail_ci_if_error: true

0 commit comments

Comments
 (0)