Skip to content

Commit

Permalink
added cvssv3 vector to patch finding
Browse files Browse the repository at this point in the history
  • Loading branch information
quirinziessler committed Mar 4, 2024
1 parent 1387c56 commit 1caa601
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion defectdojo_api/defectdojo_apiv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1475,7 +1475,7 @@ def set_finding(self, finding_id, product_id, engagement_id, test_id, title=None

return self._request('PUT', 'findings/' + str(finding_id) + '/', data=data)

def patch_finding(self, finding_id, product_id=None,engagement_id=None, is_mitigated=None, test_id=None, title=None, description=None, severity=None, cwe=None, date=None, user_id=None, impact=None, active=None, verified=None, mitigation=None, references=None, build=None,false_p=None, risk_accepted=None, cvssv3_score=None):
def patch_finding(self, finding_id, product_id=None,engagement_id=None, is_mitigated=None, test_id=None, title=None, description=None, severity=None, cwe=None, date=None, user_id=None, impact=None, active=None, verified=None, mitigation=None, references=None, build=None,false_p=None, risk_accepted=None, cvssv3_score=None, cvssv3=None):
data = {}

if title is not None:
Expand Down Expand Up @@ -1534,6 +1534,9 @@ def patch_finding(self, finding_id, product_id=None,engagement_id=None, is_mitig

if cvssv3_score is not None:
data['cvssv3_score'] = cvssv3_score

if cvssv3 is not None:
data['cvssv3'] = cvssv3

return self._request('PATCH', 'findings/' + str(finding_id) + '/', data=data)

Expand Down

0 comments on commit 1caa601

Please sign in to comment.