Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Detector ¶
type Detector struct {
// Custom patterns in addition to the defaults
CustomPatterns []*regexp.Regexp
// Entropy threshold for detecting high-entropy strings (likely secrets)
EntropyThreshold float64
}
Detector represents a lightweight secrets detector
func (*Detector) AddCustomPattern ¶
AddCustomPattern adds a custom regex pattern to detect secrets
func (*Detector) Detect ¶
func (d *Detector) Detect(workflow parser.WorkflowFile) []rules.Finding
Detect scans a workflow file for potential secrets
func (*Detector) SetEntropyThreshold ¶
SetEntropyThreshold sets the entropy threshold for detecting high-entropy strings
Click to show internal directories.
Click to hide internal directories.