Skip to content

Fix Codecov upload breaking CI when CODECOV_TOKEN is not configured#1447

Merged
delicatacurtis merged 2 commits intomainfrom
copilot/fix-upload-coverage-error
Mar 8, 2026
Merged

Fix Codecov upload breaking CI when CODECOV_TOKEN is not configured#1447
delicatacurtis merged 2 commits intomainfrom
copilot/fix-upload-coverage-error

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 8, 2026

Codecov upload step fails with {"message":"Repository not found"} when CODECOV_TOKEN secret is absent, and fail_ci_if_error: true propagates that failure to the entire workflow.

Changes

  • if: ${{ secrets.CODECOV_TOKEN }} — skips the upload step entirely when the secret is not set
  • fail_ci_if_error: false — prevents Codecov errors from blocking CI even if the step runs
- name: Upload coverage to Codecov
  uses: codecov/codecov-action@v5
  if: ${{ secrets.CODECOV_TOKEN }}
  with:
    token: ${{ secrets.CODECOV_TOKEN }}
    files: ./coverage.xml
    flags: unittests
    name: codecov-umbrella
    fail_ci_if_error: false

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…onfigured

Co-authored-by: delicatacurtis <247246500+delicatacurtis@users.noreply.github.com>
@delicatacurtis delicatacurtis marked this pull request as ready for review March 8, 2026 11:38
@delicatacurtis delicatacurtis merged commit cb3f174 into main Mar 8, 2026
1 of 4 checks passed
Copilot AI changed the title [WIP] Fix upload coverage error due to repository not found Fix Codecov upload breaking CI when CODECOV_TOKEN is not configured Mar 8, 2026
Copilot stopped work on behalf of delicatacurtis due to an error March 8, 2026 11:38
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