package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Jun 22, 2026
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package secrets scans text (spec bodies, API responses) for leaked
credentials using the merged TruffleHog/SwaggerSpy regex corpus.
Has reports whether any secret is present (cheap path).
type Finding struct {
Type string `json:"type"`
Match string `json:"match"`
}
Finding is a single secret match.
Scan returns all secret findings in the given text. Matches are de-duplicated
per (type, value) and truncated to avoid dumping huge blobs.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.