Skip to content

Commit

Permalink
Add CheckmarxOne to security-config structure
Browse files Browse the repository at this point in the history
  • Loading branch information
akiioto authored Nov 20, 2024
1 parent 7037eae commit 088205d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions pkg/securityconfig/securityconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,23 @@ import (
"gopkg.in/yaml.v3"
)

type CheckmarxOne struct {
Preset string `yaml:"preset,omitempty"`
Exclude []string `yaml:"exclude,omitempty"`
}

type Whitesource struct {
Language string `yaml:"language,omitempty"`
SubProjects bool `yaml:"subprojects,omitempty"`
Exclude []string `yaml:"exclude,omitempty"`
}

type SecurityConfig struct {
ModuleName string `yaml:"module-name,omitempty"`
RcTag string `yaml:"rc-tag,omitempty"`
Images []string `yaml:"protecode"`
Whitesource Whitesource `yaml:"whitesource,omitempty"`
ModuleName string `yaml:"module-name,omitempty"`
RcTag string `yaml:"rc-tag,omitempty"`
Images []string `yaml:"protecode"`
Whitesource Whitesource `yaml:"whitesource,omitempty"`
CheckmarxOne CheckmarxOne `yaml:"checkmarxOne,omitempty"`
}

func ParseSecurityConfig(reader io.Reader) (*SecurityConfig, error) {
Expand Down

0 comments on commit 088205d

Please sign in to comment.