Commit 5720242dee
Unsigned
Layout: unified · split
octosentry/SeverityMapping.swift +1 −4
| @@ -44,9 +44,6 @@ nonisolated enum SeverityMapping { | |||
| 44 | /// Secret scanning has no native severity field. Per spec: validated/active | 44 | /// Secret scanning has no native severity field. Per spec: validated/active |
| 45 | /// secrets are treated as critical, unvalidated ones as high. | 45 | /// secrets are treated as critical, unvalidated ones as high. |
| 46 | static func secretScanning(validity: String?) -> SecurityEventSeverity { | 46 | static func secretScanning(validity: String?) -> SecurityEventSeverity { |
| 47 | switch validity?.lowercased() { | 47 | validity?.lowercased() == "active" ? .critical : .high |
| 48 | case "active": .critical | ||
| 49 | default: .high | ||
| 50 | } | ||
| 51 | } | 48 | } |
| 52 | } | 49 | } |