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