Skip to content

Add HTML report output format #5

@pikespeak

Description

@pikespeak

Goal

Add an HTML report as an output format for ottersight scan.

Context

An HTML report is useful for sharing scan results with non-technical stakeholders or embedding in documentation. The report should be a self-contained HTML file with inline CSS (no external dependencies).

Relevant files

  • packages/cli/src/renderers/ — existing renderers (terminal table, Markdown)
  • packages/scanner/src/types.ts — scan result types

Expected interface

ottersight scan . --format html > report.html

Outputs a complete, styled HTML page to stdout with:

  • Summary header (total components, total vulns, KEV count)
  • Severity-grouped vulnerability tables
  • Component list

Getting started

  1. Read CONTRIBUTING.md for setup instructions
  2. Look at the existing Markdown renderer for the pattern
  3. Create a new renderer in packages/cli/src/renderers/html.ts
  4. Add tests

Happy to answer questions in the comments!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions