actions-marketplace-validations/Code Coverage Report Action

Action that converts a Cobertura XML report into a markdown report.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Mar 31, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: actions-marketplace-validations/insightsengineering_coverage-action@f3f8cdb7a8863fb60236982ac44b9ae63c768cd4 # no releases — HEAD as of 2026-07-10

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
tokenGithub token to use to publish the check.no${{ github.token }}
pathPath to the Cobertura coverage XML report.nocoverage.xml
thresholdThe minimum allowed coverage percentage, as a real number.no0
failFail the action when the minimum coverage was not met.notrue
publishPublish the coverage report as an issue comment.nofalse
diffCreate a diff of the coverage report.nofalse
diff-branchBranch to diff against.nomain
storage-subdirectorySubdirectory in the diff-storage branch where the XML reports will be stored.no.
diff-storageBranch where coverage reports are stored for diff purposes.no_xml_coverage_reports
coverage-summary-titleTitle for the code coverage summary in the Pull Request comment.noCode Coverage Summary
uncovered-statements-increase-failureFail the action if any changed file has an increase in uncovered lines compared to the `diff-branch`. This corresponds to pycobertura exit code 2, which indicates that at least one changed file has more uncovered lines than before (Miss > 0). Note that this is different from coverage rate reduction - it specifically checks for increases in the absolute number of uncovered lines. nofalse
new-uncovered-statements-failureFail the action if new uncovered statements are introduced AND overall coverage improved (total uncovered lines decreased) compared to the `diff-branch`. This corresponds to pycobertura exit code 3, which only occurs when total uncovered lines decreased (Miss <= 0) but there are still new uncovered statements (Missing != []). To fail on ALL new uncovered statements regardless of overall coverage improvement, use this flag together with `coverage-reduction-failure: true`. nofalse
coverage-rate-reduction-failureFail the action if the overall coverage percentage (rate) decreases compared to the `diff-branch`. This is different from `uncovered-statements-increase-failure` which checks for absolute increases in uncovered lines. This flag specifically looks at the coverage percentage and fails if it goes down, regardless of whether uncovered lines increased or decreased. This is a more forgiving approach that focuses on the relative coverage rate rather than absolute uncovered line counts. nofalse
pycobertura-exception-failureFail the action in case of a `Pycobertura` exception.notrue
togglable-reportMake the code coverage report togglable.nofalse
report-low-coverage-onlyWhen true, the detailed coverage report will only include files where coverage is less than 100%. The TOTAL summary line is always included. nofalse
exclude-detailed-coverageWhether a detailed coverage report should be excluded from the PR comment. The detailed coverage report contains the following information per file: number of code statements, number of statements not covered by any test, coverage percentage, and line numbers not covered by any test. nofalse
namedescription
summarySummary of coverage report