Skip to content

Commit 24851be

Browse files
committed
ci: skip codecov upload on dependabot PRs
Dependabot-triggered runs don't receive Actions secrets, so CODECOV_TOKEN is empty and the gated upload fails with "Token required because branch is protected". Skip the step for dependabot[bot] instead of failing CI.
1 parent 3d44a65 commit 24851be

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ jobs:
199199
200200
201201
- name: Publish to codecov
202+
if: github.actor != 'dependabot[bot]'
202203
uses: codecov/codecov-action@v5
203204
with:
204205
fail_ci_if_error: true # we weren't posting previously

0 commit comments

Comments
 (0)