Skip to content

Commit

Permalink
fix ignore rule api
Browse files Browse the repository at this point in the history
  • Loading branch information
attiasas committed Dec 16, 2024
1 parent 1cce319 commit edc3f6f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions xray/services/utils/ignorerulebody.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ package utils

import "time"

const (
SecretExposureType ExposureType = "secret"
IacExposureType ExposureType = "iac"
)

type ExposureType string

type IgnoreRuleParams struct {
Notes string `json:"notes"`
ExpiresAt time.Time `json:"expires_at,omitempty"`
Expand Down Expand Up @@ -50,9 +57,9 @@ type IgnoreFilterNameVersionPath struct {
}

type ExposuresFilterName struct {
Categories []ExposuresCategories `json:"categories,omitempty"`
Scanners []string `json:"scanners,omitempty"`
FilePath []string `json:"file_path,omitempty"`
Categories []ExposureType `json:"categories,omitempty"`
Scanners []string `json:"scanners,omitempty"`
FilePath []string `json:"file_path,omitempty"`
}

type ExposuresCategories struct {
Expand Down

0 comments on commit edc3f6f

Please sign in to comment.