Skip to content

Commit

Permalink
🐛 fix issue #8096
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-sommer committed Feb 13, 2024
1 parent bdd191c commit fca3b4e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dojo/tools/api_sonarqube/updater_from_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,23 +80,23 @@ def update_finding_status(finding, sonarqube_status):
finding.false_p = False
finding.mitigated = None
finding.is_mitigated = False
ra_helper.remove_finding.from_any_risk_acceptance(finding)
ra_helper.remove_finding_from_risk_acceptance(finding)

elif sonarqube_status == "CONFIRMED":
finding.active = True
finding.verified = True
finding.false_p = False
finding.mitigated = None
finding.is_mitigated = False
ra_helper.remove_finding.from_any_risk_acceptance(finding)
ra_helper.remove_finding_from_risk_acceptance(finding)

elif sonarqube_status == "FIXED":
finding.active = False
finding.verified = True
finding.false_p = False
finding.mitigated = timezone.now()
finding.is_mitigated = True
ra_helper.remove_finding.from_any_risk_acceptance(finding)
ra_helper.remove_finding_from_risk_acceptance(finding)

elif sonarqube_status == "WONTFIX":
finding.active = False
Expand All @@ -114,6 +114,6 @@ def update_finding_status(finding, sonarqube_status):
finding.false_p = True
finding.mitigated = None
finding.is_mitigated = False
ra_helper.remove_finding.from_any_risk_acceptance(finding)
ra_helper.remove_finding_from_risk_acceptance(finding)

finding.save(issue_updater_option=False, dedupe_option=False)

0 comments on commit fca3b4e

Please sign in to comment.