From 088205d6c49ae83b83cbce41a0a810b865a53eef Mon Sep 17 00:00:00 2001 From: Patryk Dobrowolski Date: Wed, 20 Nov 2024 08:59:31 +0100 Subject: [PATCH] Add CheckmarxOne to security-config structure --- pkg/securityconfig/securityconfig.go | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pkg/securityconfig/securityconfig.go b/pkg/securityconfig/securityconfig.go index 332367a9c545..965470ac358e 100644 --- a/pkg/securityconfig/securityconfig.go +++ b/pkg/securityconfig/securityconfig.go @@ -7,6 +7,11 @@ 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"` @@ -14,10 +19,11 @@ type Whitesource struct { } 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) {