Skip to content

Commit

Permalink
add sast ignore params
Browse files Browse the repository at this point in the history
  • Loading branch information
attiasas committed Dec 15, 2024
1 parent c2d37b1 commit 26f6d53
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions xray/services/utils/ignorerulebody.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,19 @@ type IgnoreFilters struct {
DockerLayers []string `json:"docker-layers,omitempty"`
OperationalRisks []string `json:"operational_risk,omitempty"`
Exposures []ExposuresFilterName `json:"exposures,omitempty"`
Sast []SastFilterName `json:"sast,omitempty"`
ReleaseBundles []IgnoreFilterNameVersion `json:"release-bundles,omitempty"`
Builds []IgnoreFilterNameVersion `json:"builds,omitempty"`
Components []IgnoreFilterNameVersion `json:"components,omitempty"`
Artifacts []IgnoreFilterNameVersionPath `json:"artifacts,omitempty"`
}

type SastFilterName struct {
Fingerprint []string `json:"fingerprint,omitempty"`
Rule []string `json:"rule,omitempty"`
FilePath []string `json:"file_path,omitempty"`
}

type IgnoreFilterNameVersion struct {
Name string `json:"name"`
Version string `json:"version,omitempty"`
Expand Down

0 comments on commit 26f6d53

Please sign in to comment.