Report formats
witnyx check writes one report, in up to five formats.
Standard output gets the text report, or the JSON report in agent mode.
--output FORMAT=PATH also writes the report to a file, in the format that you name: text, markdown, html, json or sarif.
Repeat it for several files; one format may go to several files.
witnyx check bom.json --output markdown=witnyx.md --output html=witnyx-report.html --output json=witnyx-report.json --output sarif=witnyx.sarifcheck has no option that changes what standard output carries, other than agent mode: --format works only together with --help.
A folder in PATH that does not exist is created.
When the check cannot run, each JSON file gets the error document instead of the report, and the other files are not written.
The examples on this page are one failing check, in each format.
The test suite compares them with what witnyx writes, so they are the real output.
Which format to use
Section titled “Which format to use”| Format | For | How to ask for it |
|---|---|---|
| Text | A person, at a terminal or in a CI log | Standard output, or --output text=PATH |
| Markdown | A pull-request comment or a GitHub job summary | --output markdown=PATH |
| HTML | A person who reads the report away from the terminal, such as a customer, an auditor or a buyer; print it to PDF | --output html=PATH |
| JSON | Programs and AI coding agents | --output json=PATH, or standard output in agent mode |
| SARIF | Code scanning, such as GitHub code scanning | --output sarif=PATH |
See also: GitHub Actions uploads the SARIF report to GitHub code scanning. Every finding in a report links to its page under Findings.
The text report is for a person.
It names the product, gives the result, lists what needs attention, and ends with when the check ran and how many components it covered.
On a terminal, the status tags are in colour.
--no-color, or the variable NO_COLOR, prints it without colours and in ASCII: -, ->, | and ... take the place of the dash, the arrow, the middle dot and the ellipsis.
A file that --output text=witnyx.txt writes never has colours.
Witnyx release security check — my-app 2.4.1
[FAIL] 1 actively exploited vulnerability — build failed CVE-2021-44228 org.apache.logging.log4j:log4j-core 2.14.1 -> upgrade to 2.15.0 (on CISA's exploited list since 2021-12-10; used in ransomware)
An actively exploited vulnerability is in a component you ship. If it affects your product and the product is sold in the EU, reporting under the EU Cyber Resilience Act (Article 14) may apply. This check recorded when you were made aware. This is not legal advice.
Checked 2026-11-14T09:12:03Z · 3 components (1 not checked: no package ID or version)Continuous monitoring and 24-hour reporting alerts → witnyx.devWith --no-color:
$ witnyx check bom.json --no-color[FAIL] 1 actively exploited vulnerability - build failedMarkdown
Section titled “Markdown”The Markdown report is for a pull-request comment or a GitHub job summary: --output markdown=witnyx.md.
Its first line is a hidden marker, <!-- witnyx:release-security-check -->, so that a tool can find its own comment and update it instead of adding another.
Names that come from the software bill of materials (SBOM) appear only in code spans, so an SBOM cannot add links, mentions or HTML to the comment.
Each list shows at most 10 items, then how many more there are, and the report stays within 60,000 characters; a longer one is cut and points to the JSON report.
<!-- witnyx:release-security-check -->## Witnyx release security check — `my-app 2.4.1`❌ **1 actively exploited vulnerability** — build failed
| Check | Result ||---|---|| Actively exploited | 1 (`CVE-2021-44228` in `org.apache.logging.log4j:log4j-core 2.14.1` → fixed in `2.15.0`) || End of life | not checked || SBOM quality | not checked || Disclosure | not checked || Other known vulnerabilities | 0 || Assessed as not affected | 0 |
### Actively exploited- `CVE-2021-44228` in `org.apache.logging.log4j:log4j-core 2.14.1` → upgrade to `2.15.0` (on CISA's exploited list since `2021-12-10`; used in ransomware)
> An actively exploited vulnerability is in a component you ship. If it affects your product and the product is sold in the EU, reporting under the EU Cyber Resilience Act (Article 14) may apply. This check recorded when you were made aware. This is not legal advice.
### Next steps1. `Upgrade org.apache.logging.log4j:log4j-core to 2.15.0 (CVE-2021-44228)`
Checked 2026-11-14 09:12 UTC · 3 components (1 not checked: no package ID or version)
Why this matters: products sold in the EU must meet the EU Cyber Resilience Act → witnyx.devThe HTML report is one page for a person who was not at the terminal: the customer a release goes to, or an auditor or a buyer who asks what was checked. Write it with --output html=witnyx-report.html.
It holds the whole report, not a summary: every finding that the report lists, the SBOM quality field by field, the disclosure files, the assessments with who approved them and until when, every data source with its status, and the next steps.
It adds nothing that the JSON report does not hold, and the JSON report stays the record for programs.
The file loads nothing. Its styles are inside it, it has no script, image or font, and a Content-Security-Policy in the page keeps it that way. Names that come from the SBOM are shown as text, so an SBOM cannot add HTML or links to the page; the only links go to OSV and to these docs. Statuses are words, such as FAIL and WARN, so the page reads the same on paper. To make a PDF, open the file in a browser and print it to PDF; the page has print rules for A4.
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="Content-Security-Policy" content="default-src 'none'; style-src 'unsafe-inline'; base-uri 'none'; form-action 'none'"><meta name="referrer" content="no-referrer"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Release security check — my-app 2.4.1 · Witnyx</title><style>:root { color-scheme: light; }* { box-sizing: border-box; }html, body { background: #fff; }body { margin: 0; color: #1b1b1f; font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }main { max-width: 60rem; margin: 0 auto; padding: 2.5rem 1.5rem 3rem; }h1 { font-size: 1.75rem; line-height: 1.25; margin: .25rem 0 1rem; overflow-wrap: anywhere; }h2 { font-size: 1.2rem; margin: 2.25rem 0 .75rem; padding-bottom: .35rem; border-bottom: 1px solid #d0d0d7; }h3 { font-size: 1rem; margin: 1.25rem 0 .5rem; }p, ul, ol, dl, table { margin: 0 0 .75rem; }ul, ol { padding-left: 1.4rem; }li { margin: .3rem 0; }code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: .88em; overflow-wrap: anywhere; }a { color: #0b57d0; }.kicker { margin: 0; color: #5a5a66; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }.headlines, .lines { list-style: none; padding: 0; }.headlines li { margin: .4rem 0; padding: .55rem .8rem; border: 1px solid #d0d0d7; border-left-width: 5px; border-radius: 4px; font-weight: 600; }.tag { display: inline-block; min-width: 7.4em; margin-right: .4rem; padding: 0 .4em; border: 1px solid currentColor; border-radius: 3px; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-align: center; vertical-align: .1em; }.status-fail { border-left-color: #b3261e; } .status-fail > .tag { color: #b3261e; }.status-warn, .status-incomplete { border-left-color: #8a5a00; } .status-warn > .tag, .status-incomplete > .tag { color: #8a5a00; }.status-pass { border-left-color: #1e7b34; } .status-pass > .tag { color: #1e7b34; }.status-info { border-left-color: #3a5a8c; } .status-info > .tag { color: #3a5a8c; }.facts { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1.25rem; }.facts div { display: contents; }.facts dt { color: #5a5a66; }.facts dd { margin: 0; overflow-wrap: anywhere; }table { width: 100%; border-collapse: collapse; }th, td { padding: .4rem .6rem; border-bottom: 1px solid #e2e2e8; text-align: left; vertical-align: top; overflow-wrap: anywhere; }thead th { border-bottom-color: #b8b8c2; color: #5a5a66; font-size: .85rem; font-weight: 600; }tbody th { width: 15rem; font-weight: 600; }.fields td:nth-child(n+2) { white-space: nowrap; }.gap td:last-child { color: #b3261e; font-weight: 600; }.word-pass { color: #1e7b34; }.word-fail { color: #b3261e; }.regulatory { padding: .75rem 1rem; border: 1px solid #b3261e; border-radius: 4px; }.aside, .more, .legal { color: #5a5a66; font-size: .9rem; }footer { margin-top: 2.5rem; padding-top: .75rem; border-top: 1px solid #d0d0d7; color: #5a5a66; font-size: .85rem; }@page { size: A4; margin: 16mm 14mm 18mm; }@media print { body { font-size: 10pt; } main { max-width: none; padding: 0; } a { color: inherit; text-decoration: none; } h2, h3 { break-after: avoid; } li, tr, .regulatory { break-inside: avoid; } thead { display: table-header-group; }}</style></head><body><main><header><p class="kicker">Witnyx release security check</p><h1>my-app 2.4.1</h1><ul class="headlines"><li class="status-fail"><span class="tag">FAIL</span> 1 actively exploited vulnerability — build failed</li></ul><dl class="facts"><div><dt>Checked</dt><dd>2026-11-14 09:12 UTC</dd></div><div><dt>SBOM</dt><dd><code>bom.json</code>, CycloneDX 1.6, 3 components, 1 not checked (no package ID or version)</dd></div><div><dt>SBOM SHA-256</dt><dd><code>abababababababababababababababababababababababababababababababab</code></dd></div><div><dt>Failure rule</dt><dd><code>--fail-on exploited</code></dd></div><div><dt>Exit code</dt><dd>1 (the failure rule triggered)</dd></div><div><dt>Checked with</dt><dd>witnyx 0.1.0-test</dd></div></dl></header><section id="summary"><h2>Summary</h2><table class="summary"><thead><tr><th scope="col">Check</th><th scope="col">Result</th></tr></thead><tbody><tr><th scope="row">Actively exploited</th><td>1</td></tr><tr><th scope="row">End of life</th><td>not checked</td></tr><tr><th scope="row">SBOM quality</th><td>not checked</td></tr><tr><th scope="row">Disclosure</th><td>not checked</td></tr><tr><th scope="row">Other known vulnerabilities</th><td>0</td></tr><tr><th scope="row">Assessed as not affected</th><td>0</td></tr></tbody></table></section><section id="next-steps"><h2>Next steps</h2><ol><li>Upgrade org.apache.logging.log4j:log4j-core to 2.15.0 (CVE-2021-44228)</li></ol></section><section id="exploited"><h2>Actively exploited</h2><ul><li><a href="https://osv.dev/vulnerability/CVE-2021-44228" rel="noreferrer"><code>CVE-2021-44228</code></a> in <code>org.apache.logging.log4j:log4j-core 2.14.1</code> → upgrade to <code>2.15.0</code> (on CISA's exploited list since 2021-12-10; used in ransomware)</li></ul><p class="regulatory">An actively exploited vulnerability is in a component you ship. If it affects your product and the product is sold in the EU, reporting under the EU Cyber Resilience Act (Article 14) may apply. This check recorded when you were made aware. This is not legal advice.</p><p class="more">What to do: <a href="https://docs.witnyx.dev/findings/exploited" rel="noreferrer">docs.witnyx.dev/findings/exploited</a></p></section><section id="data-sources"><h2>Data sources</h2><table><thead><tr><th scope="col">Source</th><th scope="col">Needed for a complete check</th><th scope="col">Status</th><th scope="col">Message</th></tr></thead><tbody><tr><td><code>osv</code></td><td>yes</td><td>answered</td><td></td></tr><tr><td><code>cisa-kev</code></td><td>yes</td><td>answered</td><td></td></tr></tbody></table></section><footer><p>Checked 2026-11-14 09:12 UTC. The JSON report (<code>--output json=FILE</code>) is the full record, schema <code>https://witnyx.dev/schemas/report/v1.json</code>.</p><p>Witnyx records evidence and points to gaps. This report is not legal advice.</p></footer></main></body></html>The JSON report is for programs and AI coding agents: --output json=witnyx-report.json, or standard output in agent mode, where it is ASCII only.
The report schema describes every field.
result.status is pass, fail or incomplete, result.exitCode is the exit code, and each finding has a fix and a docsUrl, the page that explains its kind.
{ "schema" : "https://witnyx.dev/schemas/report/v1.json", "tool" : { "name" : "witnyx", "version" : "0.1.0-test" }, "checkedAt" : "2026-11-14T09:12:03Z", "caller" : { "type" : "unknown" }, "product" : { "name" : "my-app", "version" : "2.4.1" }, "sbom" : { "path" : "bom.json", "format" : "cyclonedx", "specVersion" : "1.6", "sha256" : "abababababababababababababababababababababababababababababababab", "componentCount" : 3, "notChecked" : 1 }, "result" : { "status" : "fail", "complete" : true, "failOn" : [ "exploited" ], "triggeredBy" : [ "exploited" ], "exitCode" : 1 }, "summary" : { "exploited" : 1, "vulnerabilities" : { "critical" : 0, "high" : 0, "medium" : 0, "low" : 0, "unknown" : 0 }, "notAffected" : 0, "pendingReview" : 0 }, "findings" : [ { "id" : "CVE-2021-44228", "kind" : "exploited", "severity" : "critical", "status" : "active", "component" : { "purl" : "pkg:maven/org.apache.logging.log4j/log4j-core@2.14.1", "name" : "org.apache.logging.log4j:log4j-core", "version" : "2.14.1" }, "details" : { "osvId" : "GHSA-jfh8-c2jp-5v3q", "kevDateAdded" : "2021-12-10", "knownRansomwareUse" : true, "awareAt" : "2026-11-14T09:12:03Z" }, "fix" : { "action" : "upgrade", "to" : "2.15.0", "files" : [ ] }, "docsUrl" : "https://docs.witnyx.dev/findings/exploited" } ], "dataSources" : [ { "name" : "osv", "status" : "ok", "required" : true }, { "name" : "cisa-kev", "status" : "ok", "required" : true } ], "nextActions" : [ "Upgrade org.apache.logging.log4j:log4j-core to 2.15.0 (CVE-2021-44228)" ], "regulatoryNote" : { "text" : "An actively exploited vulnerability is in a component you ship. If it affects your product and the product is sold in the EU, reporting under the EU Cyber Resilience Act (Article 14) may apply. This check recorded when you were made aware. This is not legal advice.", "relayVerbatim" : true, "notLegalAdvice" : true }, "agentNotes" : [ ]}The SARIF report is for code scanning: --output sarif=witnyx.sarif, then upload the file to GitHub code scanning or another SARIF viewer.
It is SARIF 2.1.0, with one rule for each kind of finding and one result for each finding that the report lists.
Each rule’s helpUri is the page that explains its kind, such as https://docs.witnyx.dev/findings/exploited.
{ "$schema" : "https://docs.oasis-open.org/sarif/sarif/v2.1.0/errata01/os/schemas/sarif-schema-2.1.0.json", "version" : "2.1.0", "runs" : [ { "tool" : { "driver" : { "name" : "Witnyx", "version" : "0.1.0-test", "informationUri" : "https://witnyx.dev", "rules" : [ { "id" : "exploited", "name" : "ActivelyExploited", "shortDescription" : { "text" : "Actively exploited vulnerability in a shipped component" }, "helpUri" : "https://docs.witnyx.dev/findings/exploited", "defaultConfiguration" : { "level" : "error" } }, { "id" : "eol", "name" : "EndOfLife", "shortDescription" : { "text" : "Component past or near its end of life" }, "helpUri" : "https://docs.witnyx.dev/findings/eol", "defaultConfiguration" : { "level" : "warning" } }, { "id" : "quality", "name" : "SbomQuality", "shortDescription" : { "text" : "SBOM quality gap (EU legal minimum or completeness)" }, "helpUri" : "https://docs.witnyx.dev/findings/quality", "defaultConfiguration" : { "level" : "warning" } }, { "id" : "disclosure", "name" : "Disclosure", "shortDescription" : { "text" : "Vulnerability disclosure readiness gap (SECURITY.md or security.txt)" }, "helpUri" : "https://docs.witnyx.dev/findings/disclosure", "defaultConfiguration" : { "level" : "warning" } }, { "id" : "vulnerability", "name" : "KnownVulnerability", "shortDescription" : { "text" : "Other known vulnerability in a shipped component" }, "helpUri" : "https://docs.witnyx.dev/findings/vulnerability", "defaultConfiguration" : { "level" : "warning" } } ] } }, "invocations" : [ { "executionSuccessful" : true } ], "results" : [ { "ruleId" : "exploited", "ruleIndex" : 0, "level" : "error", "message" : { "text" : "CVE-2021-44228 in org.apache.logging.log4j:log4j-core 2.14.1 is actively exploited (listed in CISA KEV). Upgrade to 2.15.0. An actively exploited vulnerability is in a component you ship. If it affects your product and the product is sold in the EU, reporting under the EU Cyber Resilience Act (Article 14) may apply. This check recorded when you were made aware. This is not legal advice." }, "locations" : [ { "physicalLocation" : { "artifactLocation" : { "uri" : "bom.json" }, "region" : { "startLine" : 1 } } } ], "partialFingerprints" : { "witnyx/v1" : "1b075bdaa3a7792367a859e88b018e8a184904b44f10349a801280718c0eb39d" }, "properties" : { "severity" : "critical", "status" : "active", "purl" : "pkg:maven/org.apache.logging.log4j/log4j-core@2.14.1" } } ], "properties" : { "regulatoryNote" : { "text" : "An actively exploited vulnerability is in a component you ship. If it affects your product and the product is sold in the EU, reporting under the EU Cyber Resilience Act (Article 14) may apply. This check recorded when you were made aware. This is not legal advice.", "relayVerbatim" : true, "notLegalAdvice" : true } } } ]}Upload a SARIF report only from a check that ran in the repository’s root folder with the default --repo-dir. The locations of the files to fix are relative to --repo-dir and the SBOM’s location to the working folder, and code scanning reads both from the repository root. The GitHub Action always runs this way.
Witnyx is a record-keeping and workflow tool. It does not certify compliance. Nothing on this site is legal advice.