Skip to content

ci: don't fail CI when Codecov upload fails on fork PRs#2294

Closed
arimu1 wants to merge 1 commit into
common-workflow-language:mainfrom
arimu1:fix/codecov-no-fail-on-fork-pr
Closed

ci: don't fail CI when Codecov upload fails on fork PRs#2294
arimu1 wants to merge 1 commit into
common-workflow-language:mainfrom
arimu1:fix/codecov-no-fail-on-fork-pr

Conversation

@arimu1

@arimu1 arimu1 commented Jun 20, 2026

Copy link
Copy Markdown

The three Codecov upload steps use fail_ci_if_error: true with a token-gated upload (CODECOV_TOKEN). GitHub Actions withholds secrets from pull requests opened from forks, so the upload step fails and turns the whole CI run red for external contributors, regardless of whether their actual changes pass.

This restores the behaviour intentionally set in #1857 ("keep running even if codecov upload fails"), which was reverted by fe1e8a9 ("Fix codecov v4 configuration"). Coverage uploads from trusted (non-fork) runs still happen; they just no longer hard-fail CI.

The three Codecov upload steps use fail_ci_if_error: true with a
token-gated upload (CODECOV_TOKEN). GitHub Actions withholds secrets
from pull requests opened from forks, so the upload step fails and
turns the whole CI run red for external contributors, regardless of
whether their actual changes pass.

This restores the behaviour intentionally set in common-workflow-language#1857
("keep running even if codecov upload fails"), which was reverted by
fe1e8a9 ("Fix codecov v4 configuration"). Coverage uploads from
trusted (non-fork) runs still happen; they just no longer hard-fail CI.
@codecov

codecov Bot commented Jun 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.18%. Comparing base (8949fc2) to head (a54ac79).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2294      +/-   ##
==========================================
+ Coverage   85.10%   85.18%   +0.08%     
==========================================
  Files          46       46              
  Lines        8591     8591              
  Branches     2011     2011              
==========================================
+ Hits         7311     7318       +7     
+ Misses        813      807       -6     
+ Partials      467      466       -1     

☔ View full report in Codecov by Harness.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@arimu1 arimu1 closed this Jun 23, 2026
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