Documentation
¶
Overview ¶
Package sarif provides a SARIF v2.1.0 output formatter for Leakwatch findings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Formatter ¶
type Formatter struct {
// ShowRaw, when true, includes the unredacted secret value as a
// "raw" entry under each result's properties bag. When false, no raw value
// is emitted anywhere in the output.
ShowRaw bool
// Version is embedded verbatim as tool.driver.version. Callers should set
// this to the real build version (the same value reported by `leakwatch
// version`) so shipped SARIF documents are traceable to the Leakwatch
// release that produced them. When left empty (e.g. a zero-value
// Formatter), it falls back to defaultToolVersion ("dev") so existing
// callers keep producing valid, non-empty output.
Version string
}
Formatter outputs findings in SARIF v2.1.0 format.
func (*Formatter) FileExtension ¶
FileExtension returns the SARIF file extension.
Click to show internal directories.
Click to hide internal directories.