From 13956c69f7e84220b33967ea08f9923bc0ed1b0c Mon Sep 17 00:00:00 2001 From: afdesk Date: Mon, 22 Jul 2024 18:55:01 +0600 Subject: [PATCH] fead: add `severity` field to providers export --- pkg/fanal/secret/builtin-rules.go | 1 + pkg/iac/rules/providers.go | 1 + 2 files changed, 2 insertions(+) diff --git a/pkg/fanal/secret/builtin-rules.go b/pkg/fanal/secret/builtin-rules.go index 6d0c0eacfdcd..2a66522c646b 100644 --- a/pkg/fanal/secret/builtin-rules.go +++ b/pkg/fanal/secret/builtin-rules.go @@ -88,6 +88,7 @@ func GetSecretRulesMetadata() []iacRules.Check { return iacRules.Check{ Name: rule.ID, Description: rule.Title, + Severity: rule.Severity, } }) } diff --git a/pkg/iac/rules/providers.go b/pkg/iac/rules/providers.go index 7c14aa1c627a..577d9c6ba9b5 100644 --- a/pkg/iac/rules/providers.go +++ b/pkg/iac/rules/providers.go @@ -18,6 +18,7 @@ type Service struct { type Check struct { Name string `json:"name"` Description string `json:"description"` + Severity string `json:"severity"` } func GetProvidersHierarchy() (providers map[string]map[string][]string) {