Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorValidation = errors.New("report failed validation")
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ProjectName string `yaml:"projectName" json:"projectName"`
Grype *grype.Config `yaml:"grype,omitempty" json:"grype,omitempty"`
Semgrep *semgrep.Config `yaml:"semgrep,omitempty" json:"semgrep,omitempty"`
Gitleaks *gitleaks.Config `yaml:"gitleaks,omitempty" json:"gitleaks,omitempty"`
}
type Report ¶
type Report struct {
ProjectName string `json:"projectName"`
PipelineId string `json:"pipelineId"`
PipelineUrl string `json:"pipelineUrl"`
Timestamp string `json:"timestamp"`
Artifacts struct {
Grype *grype.Artifact `json:"grype,omitempty"`
Semgrep *semgrep.Artifact `json:"semgrep,omitempty"`
Gitleaks *gitleaks.Artifact `json:"gitleaks,omitempty"`
} `json:"artifacts"`
}
func (Report) WithConfig ¶
WithConfig will configure each Artifact if the config is defined
func (Report) WithSettings ¶
Click to show internal directories.
Click to hide internal directories.