vln-devsecops/Validate Coverage

Validate test coverage from XML files against minimum thresholds

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
coverage-filePath to the coverage XML file (e.g., coverage/cobertura.xml)yes
minimum-coverageMinimum coverage percentage required (e.g., 85)yes85
coverage-typeType of coverage XML format (clover, cobertura, jacoco)nocobertura
working-directoryWorking directory where the coverage file is locatedno.
github-tokenToken used to publish a commit status with the coverage result (e.g. ${{ github.token }}). Omit to skip status publishing entirely — the action behaves exactly as before.no
status-contextCommit status context to publish under. Must start with "coverage" to be picked up by the org dashboard.nocoverage/validate-coverage
json-report-filePath to write a machine-readable JSON coverage report (relative to working-directory), for dashboards in other orgs that consume a workflow artifact instead of a commit status. Omit to skip report-file generation — the report-json output is still produced.no""
namedescription
coverage-percentageThe actual coverage percentage found
statusPass or fail status of the validation
report-jsonA compact JSON string summarizing the coverage report (coverageFile, coverageType, coveragePercentage, minimumCoverage, status, covered, total, timestamp)
report-filePath to the written JSON report file, relative to $GITHUB_WORKSPACE when the report lives under it (falls back to an absolute container path otherwise) so it can be used directly by later steps like actions/upload-artifact. Only set when json-report-file is provided and the write succeeds