summaryrefslogtreecommitdiff
path: root/octosentry/SecurityEventSource.swift
diff options
context:
space:
mode:
Diffstat (limited to 'octosentry/SecurityEventSource.swift')
-rw-r--r--octosentry/SecurityEventSource.swift20
1 files changed, 20 insertions, 0 deletions
diff --git a/octosentry/SecurityEventSource.swift b/octosentry/SecurityEventSource.swift
new file mode 100644
index 0000000..9c68296
--- /dev/null
+++ b/octosentry/SecurityEventSource.swift
@@ -0,0 +1,20 @@
+//
+// SecurityEventSource.swift
+// octosentry
+//
+
+import Foundation
+
+enum SecurityEventSource: String, Codable, CaseIterable {
+ case dependabot
+ case codeScanning
+ case secretScanning
+
+ var displayName: String {
+ switch self {
+ case .dependabot: "Dependabot"
+ case .codeScanning: "CodeQL"
+ case .secretScanning: "Secret Scanning"
+ }
+ }
+}