sarif

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2026 License: MIT Imports: 6 Imported by: 0

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
}

Formatter outputs findings in SARIF v2.1.0 format.

func (*Formatter) FileExtension

func (f *Formatter) FileExtension() string

FileExtension returns the SARIF file extension.

func (*Formatter) Format

func (f *Formatter) Format(w io.Writer, findings []finding.Finding) error

Format writes findings in SARIF v2.1.0 JSON to the given writer. When ShowRaw is true, each result carries the unredacted secret value under properties.raw; otherwise no raw value is emitted.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL