File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
objects/abstract_security_content_objects Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ class Detection_Abstract(SecurityContentObject):
60
60
search : str = Field (...)
61
61
how_to_implement : str = Field (..., min_length = 4 )
62
62
known_false_positives : str = Field (..., min_length = 4 )
63
+ explanation : Optional [str ] = None
63
64
64
65
enabled_by_default : bool = False
65
66
file_path : FilePath = Field (...)
Original file line number Diff line number Diff line change 7
7
type = detection
8
8
asset_type = {{ detection.tags.asset_type.value }}
9
9
confidence = medium
10
- explanation = {{ detection.description | escapeNewlines() }}
10
+ explanation = {{ detection.explanation if detection.explanation else detection. description | escapeNewlines() }}
11
11
{% if detection .how_to_implement is defined %}
12
12
how_to_implement = {{ detection.how_to_implement | escapeNewlines() }}
13
13
{% else %}
You can’t perform that action at this time.
0 commit comments