Skip to content

Commit 849cf8c

Browse files
committed
ci: use CODECOV_TOKEN on protected branch
1 parent f146c12 commit 849cf8c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,10 @@ jobs:
9999
lcov --list coverage.info --rc branch_coverage=1
100100
101101
- name: Upload to Codecov
102+
if: github.event_name == 'push'
102103
uses: codecov/codecov-action@v5
103104
with:
105+
token: ${{ secrets.CODECOV_TOKEN }}
104106
files: coverage.info
105107
fail_ci_if_error: true
106108
verbose: true

0 commit comments

Comments
 (0)