Skip to content

Commit

Permalink
Parse policy Field from scan response
Browse files Browse the repository at this point in the history
  • Loading branch information
attiasas committed Dec 2, 2024
1 parent 23f6250 commit ba0c6c7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions xray/services/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ type Violation struct {
LicenseKey string `json:"license_key,omitempty"`
LicenseName string `json:"license_name,omitempty"`
IgnoreUrl string `json:"ignore_url,omitempty"`
Policies []Policy `json:"policies,omitempty"`
RiskReason string `json:"risk_reason,omitempty"`
IsEol *bool `json:"is_eol,omitempty"`
EolMessage string `json:"eol_message,omitempty"`
Expand Down Expand Up @@ -320,6 +321,11 @@ type JfrogResearchSeverityReason struct {
IsPositive bool `json:"is_positive,omitempty"`
}

type Policy struct {
Policy string `json:"policy,omitempty"`
Rule string `json:"rule,omitempty"`
}

type XscPostContextResponse struct {
MultiScanId string `json:"multi_scan_id,omitempty"`
}
Expand Down

0 comments on commit ba0c6c7

Please sign in to comment.