The HTML report
Last updated 24 November 2026
Since 1.18.0 the scanner can write its report as one HTML file, for a person rather than a tool: a security reviewer who does not use a terminal, a ticket that needs the findings attached, or an audit record of one scan. The file is self-contained. Opening it fetches nothing, runs no script and shows every string from the scanned repository as text.
Write the report
Give the format and a file name:
spellwarden scan --format html --output report.htmlOr without installing the scanner: pipx run spellwarden==1.21.0 scan --format html --output report.html. As with every format, --format may be given several times, each with its own --output, so one scan can write the HTML report beside the JSON or SARIF report. The report is byte-identical for the same files, settings and --as-of date: it holds no timestamp of its own and no absolute path.
What the report holds
In this order:
- the title Spellwarden scan report, the scanner and rules versions and the date of the scan;
- the preset, when one other than balanced applied (see Presets);
- the outcome and the exit code, and the counts by severity;
- the notices and the errors;
- every item scanned (skills, configuration files, instruction files, agent cards and probed servers) with its findings: the rule id, title and severity, the location, the evidence, the fingerprint, the baseline's reason for an accepted finding, and a link to the rule's page;
- the lock changes, the notes of the description lint and, with
--analyze, the model-assisted analysis, which is advisory as in every report.
A finding whose severity a preset changed says so, for example raised from medium by the strict preset. The links to the rule pages on spellwarden.ai are plain links a person may click; they carry the campaign tags utm_source=scanner&utm_medium=html-report&utm_campaign=rule-docs and nothing about the scan.
Since 1.21.0 each finding also shows its rule's fix sentence, and for three rules the setting lines to write, above the link to the rule page. Before 1.21.0 that link wrote the rule id in capitals, an address this site did not have; it now writes the page's own address, and the site opens the rule page for the old address too. See How each finding tells you the fix.
Built for content you do not trust
A skill or a server can hold text written to attack whoever reads it. Every string from the scanned repository or a probed server is escaped: &, <, >, " and ' become character references, hidden characters show as \u{NNNN} and control characters as \xNN. A skill whose text holds <script> shows it as text.
- There is no script element, no event attribute, no form, no frame, no image, no font and no external stylesheet: one inline style, without url().
- The file carries a Content-Security-Policy that forbids every fetch:
default-src 'none'; style-src 'unsafe-inline'; img-src data:; base-uri 'none'; form-action 'none'. Opening it makes no network request. - Attributes hold only the scanner's own values, such as rule ids, never text from the repository.
What the report leaves out
The HTML report does not hold everything the JSON report holds. The connected-mode details (the credential, the organisation, the run, the policy applied, the registry check and the upload's outcome) and the scopes of instruction files (when the agent applies each one) are in the JSON report, in its connected block and in each instruction file's format and front_matter; the text and Markdown reports show them too. The notices of a connected run, the upload's among them, are in the HTML report with every other notice.
The report has no size limit of its own: it holds every finding, notice and error of the JSON report, under the scanner's existing caps on the findings kept per package and the length of a finding's evidence, each of which shows the count it left out.