Documentation
¶
Index ¶
Constants ¶
View Source
const ConfigFieldName = "gitleaks"
View Source
const ConfigType = "Gitleaks Config"
View Source
const ReportType = "Gitleaks Scan Report"
Variables ¶
This section is empty.
Functions ¶
func NoSecretsRule ¶
Types ¶
type Config ¶
type Config struct {
SecretsAllowed bool `yaml:"secretsAllowed" json:"secretsAllowed"`
}
type ReportDecoder ¶
Gitleaks reports are just an array of findings. No findings is '[]' literally
func NewReportDecoder ¶
func NewReportDecoder() *ReportDecoder
func (*ReportDecoder) Decode ¶
func (d *ReportDecoder) Decode() (any, error)
func (*ReportDecoder) DecodeFrom ¶
func (d *ReportDecoder) DecodeFrom(r io.Reader) (any, error)
func (*ReportDecoder) FileType ¶
func (d *ReportDecoder) FileType() string
type ScanReport ¶
type ScanReport []Finding
func (ScanReport) String ¶
func (r ScanReport) String() string
Click to show internal directories.
Click to hide internal directories.