Skip to content
All news
ChangelogAI-written

GitHub Code Quality upload-code-coverage now requires Cobertura XML

The upload-code-coverage action now only accepts Cobertura XML reports, fails with a specific error for other formats, and skips report lines that lack a usable line number or hit count.

GitHub Code Quality has updated the upload-code-coverage action. The change enforces Cobertura XML as the sole supported format and adjusts how incomplete lines are processed. Developers will see a new error message when a non‑Cobertura file is uploaded.

The action now requires coverage reports to be in Cobertura XML format. If a report is not in a supported format, the upload step fails with the error “This file is not a Cobertura XML report.” This behavior constitutes a breaking change because the step will no longer succeed without conversion or configuration adjustments. Developers must configure their test framework to output Cobertura XML or convert existing reports before uploading.

For reports that are valid Cobertura XML, the action is more forgiving. Minor structural issues no longer cause a rejection, and the action now skips individual lines that lack a usable line number or hit count instead of discarding the entire report.

The update is available on GitHub Enterprise Cloud and GitHub Team, including Enterprise Cloud with data residency. It is not available on GitHub Enterprise Server. Code coverage continues to require GitHub Code Quality to be enabled for the repository.