Skip to content

Commit 91340de

Browse files
committed
Use DEDUPE_ALGO_HASH_CODE
1 parent 22aa795 commit 91340de

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

dojo/settings/settings.dist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1659,7 +1659,7 @@ def saml2_attrib_map_format(din):
16591659
"Cyberwatch scan (Galeax)": DEDUPE_ALGO_HASH_CODE,
16601660
"OpenVAS Parser v2": DEDUPE_ALGO_HASH_CODE,
16611661
"Snyk Issue API Scan": DEDUPE_ALGO_HASH_CODE,
1662-
"OpenReports": DEDUPE_ALGO_UNIQUE_ID_FROM_TOOL_OR_HASH_CODE,
1662+
"OpenReports": DEDUPE_ALGO_HASH_CODE,
16631663
}
16641664

16651665
# Override the hardcoded settings here via the env var

dojo/tools/openreports/parser.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,7 @@ def _create_finding_from_result(self, test, result, service_name, report_name, r
268268
if policy.startswith("CVE-"):
269269
finding.unsaved_vulnerability_ids = [policy]
270270

271-
# Set vuln_id_from_tool to the policy field for deduplication
272-
# This allows using DEDUPE_ALGO_UNIQUE_ID_FROM_TOOL_OR_HASH_CODE
271+
# Set vuln_id_from_tool to policy field for display
273272
finding.vuln_id_from_tool = policy
274273

275274
return finding # noqa: TRY300 - This is intentional

0 commit comments

Comments
 (0)