Skip to content

ci: skip codecov upload on dependabot PRs#46

Merged
edge90 merged 1 commit into
mainfrom
ci/skip-codecov-dependabot
Jun 8, 2026
Merged

ci: skip codecov upload on dependabot PRs#46
edge90 merged 1 commit into
mainfrom
ci/skip-codecov-dependabot

Conversation

@edge90

@edge90 edge90 commented Jun 8, 2026

Copy link
Copy Markdown
Owner

Dependabot-triggered workflow runs don't receive Actions secrets, so ${{ secrets.CODECOV_TOKEN }} is empty (Token length: 0) and the upload fails with Token required because branch is protected — failing CI on every Dependabot PR (e.g. #45).

Guard the codecov step with if: github.actor != 'dependabot[bot]'. A dependency version bump doesn't change coverage, so skipping the upload there loses nothing; pushes and human PRs still upload as before. Avoids duplicating the token into the Dependabot secret store.

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.
@edge90 edge90 merged commit 24851be into main Jun 8, 2026
2 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant