Goal
Add SARIF (Static Analysis Results Interchange Format) as an output format for ottersight scan.
Context
Currently the CLI outputs a terminal table and Markdown. SARIF is a standard format for static analysis results that integrates with GitHub Code Scanning, VS Code, and other tools.
Relevant files
packages/cli/src/renderers/ — existing renderers (terminal table, Markdown)
packages/scanner/src/types.ts — scan result types
Expected interface
ottersight scan . --format sarif
Outputs valid SARIF JSON to stdout. See SARIF spec.
Getting started
- Read CONTRIBUTING.md for setup instructions
- Look at the existing Markdown renderer for the pattern
- Create a new renderer in
packages/cli/src/renderers/sarif.ts
- Add tests in
packages/cli/src/__tests__/
Happy to answer questions in the comments!
Goal
Add SARIF (Static Analysis Results Interchange Format) as an output format for
ottersight scan.Context
Currently the CLI outputs a terminal table and Markdown. SARIF is a standard format for static analysis results that integrates with GitHub Code Scanning, VS Code, and other tools.
Relevant files
packages/cli/src/renderers/— existing renderers (terminal table, Markdown)packages/scanner/src/types.ts— scan result typesExpected interface
ottersight scan . --format sarifOutputs valid SARIF JSON to stdout. See SARIF spec.
Getting started
packages/cli/src/renderers/sarif.tspackages/cli/src/__tests__/Happy to answer questions in the comments!