Documentation
¶
Index ¶
Constants ¶
View Source
const ( FindingTypeVulnerability = "VULNERABILITY" FindingTypeSAST = "SAST" FindingTypeLicenseViolation = "LICENSE_VIOLATION" )
Variables ¶
This section is empty.
Functions ¶
func IsValidFindingType ¶
IsValidFindingType checks whether a finding type string is recognized.
func SetViolationFinding ¶
func SetViolationFinding(violation *v1.PolicyEvaluation_Violation, findingType string, finding proto.Message) error
SetViolationFinding populates the oneof finding field on a Violation proto based on the finding type and the validated proto message.
func ValidateFinding ¶
ValidateFinding validates a raw violation object against the proto schema for the given finding type. It marshals the raw map to JSON, unmarshals into the corresponding proto message, and runs buf.validate constraints. Returns the validated proto message on success.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.