Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatWarnings ¶
FormatWarnings formats findings into a human-readable warning string suitable for appending to a tool result.
Types ¶
type Finding ¶
type Finding struct {
PatternID string
Name string
Severity string
Line int // 1-based line number
Match string // the matched text (may be partially masked in output)
}
Finding represents a single detected secret occurrence.
func ScanForSecrets ¶
ScanForSecrets scans content for known secret patterns and returns findings. filePath is used to skip allowlisted files (test fixtures, examples, etc.).
Click to show internal directories.
Click to hide internal directories.