mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-24 13:01:56 +00:00
fix(json-ocsf): Remove risk field from unmapped (#3759)
Co-authored-by: Pepe Fagoaga <pepe@prowler.com>
This commit is contained in:
@@ -279,7 +279,7 @@ The following is the mapping between the native JSON and the Detection Finding f
|
||||
| ResourceType | resources.type |
|
||||
| ResourceDetails | _Not mapped yet_ |
|
||||
| Description | finding_info.desc |
|
||||
| Risk | unmapped.risk |
|
||||
| Risk | risk_details _Available from OCSF 1.2_ |
|
||||
| RelatedUrl | unmapped.related_url |
|
||||
| Remediation.Recommendation.Text | remediation.desc |
|
||||
| Remediation.Recommendation.Url | remediation.references |
|
||||
|
||||
@@ -110,7 +110,6 @@ def fill_json_ocsf(finding_output: FindingOutput) -> DetectionFinding:
|
||||
type_name=DetectionFindingTypeID.Create.name,
|
||||
unmapped={
|
||||
"check_type": finding_output.check_type,
|
||||
"risk": finding_output.risk,
|
||||
"related_url": finding_output.related_url,
|
||||
"categories": finding_output.categories,
|
||||
"depends_on": finding_output.depends_on,
|
||||
|
||||
@@ -76,7 +76,6 @@ class TestOutputJSONOCSF:
|
||||
# Unmapped Data
|
||||
assert finding_json_ocsf.unmapped == {
|
||||
"check_type": finding_output.check_type,
|
||||
"risk": finding_output.risk,
|
||||
"related_url": finding_output.related_url,
|
||||
"categories": finding_output.categories,
|
||||
"depends_on": finding_output.depends_on,
|
||||
|
||||
Reference in New Issue
Block a user