Report formats
witnyx check writes one report, in up to four 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, json or sarif.
Repeat it for several files; one format may go to several files.
witnyx check bom.json --output markdown=witnyx.md --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 |
| 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 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" : { "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", } } ], "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.