Skip to content

Commit 3c8ef5e

Browse files
close old findings: don't overwrite mitigated timestamp (#12204)
1 parent 7098998 commit 3c8ef5e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

dojo/importers/base_importer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,8 @@ def mitigate_finding(
752752
"""
753753
finding.active = False
754754
finding.is_mitigated = True
755-
finding.mitigated = self.scan_date
755+
if not finding.mitigated:
756+
finding.mitigated = self.scan_date
756757
finding.mitigated_by = self.user
757758
finding.notes.create(
758759
author=self.user,

0 commit comments

Comments
 (0)