Skip to content

Skip Codecov upload for dependabot PRs#84

Merged
grzanka merged 2 commits into
mainfrom
copilot/fix-dependabot-codecov-tests
Mar 31, 2026
Merged

Skip Codecov upload for dependabot PRs#84
grzanka merged 2 commits into
mainfrom
copilot/fix-dependabot-codecov-tests

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 31, 2026

Dependabot PRs don't have access to repository secrets, so the CODECOV_TOKEN is unavailable and the Codecov upload fails with "Token required because branch is protected". Combined with fail_ci_if_error: true, this fails the entire Coverage workflow on every dependabot PR.

  • Gate the "Upload to Codecov" step on github.actor != 'dependabot[bot]'
  • Coverage build and tests still run for dependabot PRs; only the upload is skipped

Copilot AI linked an issue Mar 31, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Fix dependabot failing Codecov tests Skip Codecov upload for dependabot PRs Mar 31, 2026
Copilot AI requested a review from grzanka March 31, 2026 07:25
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.41%. Comparing base (62707fd) to head (4953421).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #84   +/-   ##
=======================================
  Coverage   58.41%   58.41%           
=======================================
  Files          32       32           
  Lines        2366     2366           
  Branches      290      290           
=======================================
  Hits         1382     1382           
  Misses        977      977           
  Partials        7        7           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@grzanka grzanka marked this pull request as ready for review March 31, 2026 07:32
@grzanka grzanka merged commit 6bb1209 into main Mar 31, 2026
17 checks passed
@grzanka grzanka deleted the copilot/fix-dependabot-codecov-tests branch May 30, 2026 08:53
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.

Fix dependabot failing codecov tests

2 participants