ankercode report
ankercode report takes findings.json and ankercode.decisions.yaml from a previous scan and renders them into a German-language Evidence Report.
ankercode report [path] [options]path defaults to the current directory if omitted. It must contain an ankercode/findings.json file (created by ankercode scan).
Options
Section titled “Options”| Option | Description |
|---|---|
--pdf |
Generate PDF (requires wkhtmltopdf) |
--html |
Generate standalone HTML |
--docx |
Generate Word document |
--output <file> |
Override output file path (single format only) |
If none of --pdf, --html, --docx are given, all three formats are generated.
Examples
Section titled “Examples”# Generate all formatsankercode report
# PDF onlyankercode report . --pdf
# HTML only with custom output pathankercode report . --html --output /tmp/my-report.htmlReport pipeline
Section titled “Report pipeline”Internally the report engine:
- Loads
findings.json(fromankercode scan) - Loads
ankercode.decisions.yaml(VEX statements + risk acceptances) - Renders a German Markdown document using the template engine
- Passes Markdown → Pandoc → wkhtmltopdf (PDF), Pandoc (HTML/DOCX)
Output filenames
Section titled “Output filenames”Reports are written to <path>/ankercode/ with the current date:
ankercode/report-2026-06-30.pdfankercode/report-2026-06-30.htmlankercode/report-2026-06-30.docxReproducibility
Section titled “Reproducibility”Re-running ankercode report on the same findings.json + ankercode.decisions.yaml always produces the same output. The scanner versions used in the original scan are embedded in the report under Section 7: Methodik.
