-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add severity computation details
- Loading branch information
1 parent
a21804b
commit 60f82f3
Showing
6 changed files
with
124 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 41 additions & 6 deletions
47
pkg/report/output/security/.snapshots/TestCalculateSeverity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,42 @@ | ||
([]string) (len=5) { | ||
(string) (len=8) "critical", | ||
(string) (len=4) "high", | ||
(string) (len=6) "medium", | ||
(string) (len=7) "warning", | ||
(string) (len=7) "warning" | ||
([]security.SeverityWeighting) (len=5) { | ||
(security.SeverityWeighting) { | ||
RuleSeverity: (string) (len=3) "low", | ||
DisplaySeverity: (string) (len=8) "critical", | ||
SensitiveDataCategoryWeighting: (int) 3, | ||
RuleSeverityWeighting: (int) 2, | ||
TriggerWeighting: (bool) true, | ||
FinalWeighting: (int) 8 | ||
}, | ||
(security.SeverityWeighting) { | ||
RuleSeverity: (string) (len=3) "low", | ||
DisplaySeverity: (string) (len=4) "high", | ||
SensitiveDataCategoryWeighting: (int) 3, | ||
RuleSeverityWeighting: (int) 2, | ||
TriggerWeighting: (bool) false, | ||
FinalWeighting: (int) 5 | ||
}, | ||
(security.SeverityWeighting) { | ||
RuleSeverity: (string) (len=3) "low", | ||
DisplaySeverity: (string) (len=6) "medium", | ||
SensitiveDataCategoryWeighting: (int) 2, | ||
RuleSeverityWeighting: (int) 2, | ||
TriggerWeighting: (bool) false, | ||
FinalWeighting: (int) 4 | ||
}, | ||
(security.SeverityWeighting) { | ||
RuleSeverity: (string) (len=7) "warning", | ||
DisplaySeverity: (string) (len=7) "warning", | ||
SensitiveDataCategoryWeighting: (int) 0, | ||
RuleSeverityWeighting: (int) 0, | ||
TriggerWeighting: (bool) false, | ||
FinalWeighting: (int) 0 | ||
}, | ||
(security.SeverityWeighting) { | ||
RuleSeverity: (string) (len=7) "warning", | ||
DisplaySeverity: (string) (len=7) "warning", | ||
SensitiveDataCategoryWeighting: (int) 0, | ||
RuleSeverityWeighting: (int) 0, | ||
TriggerWeighting: (bool) false, | ||
FinalWeighting: (int) 0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters