Skip to content

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

Merged
mr-c merged 1 commit into
common-workflow-language:mainfrom
arimu1:fix/codecov-no-fail-on-fork-pr
Jun 25, 2026
Merged

mr-c merged 1 commit into
common-workflow-language:mainfrom
arimu1:fix/codecov-no-fail-on-fork-pr

Conversation

@arimu1

@arimu1 arimu1 commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

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.
@mr-c
mr-c marked this pull request as ready for review June 25, 2026 13:35
@mr-c
mr-c merged commit 1bf7449 into common-workflow-language:main Jun 25, 2026
124 of 127 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.

2 participants