types

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Finding

type Finding struct {
	Path       string            `json:"path"`
	Line       int               `json:"line"`
	Column     int               `json:"column,omitempty"` // Column number (0 if unknown)
	Match      string            `json:"match"`
	Secret     string            `json:"secret,omitempty"` // Actual secret value (may be redacted)
	Detector   string            `json:"detector"`
	Severity   Severity          `json:"severity"`
	Confidence float64           `json:"confidence"`
	Context    string            `json:"context,omitempty"`  // Additional context or description
	Metadata   map[string]string `json:"metadata,omitempty"` // Artifact-specific metadata
}

Finding describes a potential secret or sensitive value detected at a path and line, including the detector ID, severity, and confidence in [0,1].

type Severity

type Severity string

Severity is a coarse-grained risk level for a finding.

const (
	SevLow  Severity = "low"
	SevMed  Severity = "medium"
	SevHigh Severity = "high"
)

Jump to

Keyboard shortcuts

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