diff --git a/e2e/kics_test.go b/e2e/kics_test.go index c934a21a43..d872d4bdb4 100644 --- a/e2e/kics_test.go +++ b/e2e/kics_test.go @@ -73,6 +73,7 @@ var _ = ginkgo.Describe("Running KICS scan", func() { ScannerConfig: "", }, }, + LogLevel: "error", }, }).Run(ctx, notifier) gomega.Expect(errs).To(gomega.BeEmpty()) diff --git a/plugins/runner/types/types.go b/plugins/runner/types/types.go index 62440cf8ca..5817ba1d86 100644 --- a/plugins/runner/types/types.go +++ b/plugins/runner/types/types.go @@ -46,6 +46,8 @@ type PluginConfig struct { BinaryArtifactsPath string `yaml:"binary_artifacts_path" mapstructure:"binary_artifacts_path"` // BinaryArtifactsClean is a flag to indicate that the downloaded and extracted container image needs to be cleaned up after the plugin execution BinaryArtifactsClean bool `yaml:"binary_artifacts_clean" mapstructure:"binary_artifacts_clean"` + // LogLevel is the log level for the plugin scanner + LogLevel string `yaml:"log_level" mapstructure:"log_level" json:"log_level"` } type PluginRunner interface { diff --git a/scanner/families/plugins/types/config.go b/scanner/families/plugins/types/config.go index e80c4a50f1..620f027aa1 100644 --- a/scanner/families/plugins/types/config.go +++ b/scanner/families/plugins/types/config.go @@ -28,6 +28,7 @@ type Config struct { BinaryMode bool `yaml:"binary_mode" mapstructure:"binary_mode" json:"binary_mode"` BinaryArtifactsPath string `yaml:"binary_artifacts_path" mapstructure:"binary_artifacts_path" json:"binary_artifacts_path"` BinaryArtifactsClean bool `yaml:"binary_artifacts_clean" mapstructure:"binary_artifacts_clean" json:"binary_artifacts_clean"` + LogLevel string `yaml:"log_level" mapstructure:"log_level" json:"log_level"` } type ScannersConfig map[string]runnerconfig.Config