Skip to content

Commit b277e48

Browse files
authored
Merge pull request #9 from pavkir/master
Add minimum_severity field
2 parents d140907 + 51ac3f5 commit b277e48

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

defectdojo_api/defectdojo.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ def set_finding(self, finding_id, product_id, engagement_id, test_id, title=None
640640

641641
##### Upload API #####
642642

643-
def upload_scan(self, engagement_id, scan_type, file, active, scan_date, tags=None, build=None):
643+
def upload_scan(self, engagement_id, scan_type, file, active, scan_date, tags=None, build=None, minimum_severity="Info"):
644644
"""Uploads and processes a scan file.
645645
646646
:param application_id: Application identifier.
@@ -660,7 +660,8 @@ def upload_scan(self, engagement_id, scan_type, file, active, scan_date, tags=No
660660
'active': ('', active),
661661
'scan_date': ('', scan_date),
662662
'tags': ('', tags),
663-
'build_id': ('', build)
663+
'build_id': ('', build),
664+
'minimum_severity': ('', minimum_severity)
664665
}
665666

666667
return self._request(
@@ -670,7 +671,7 @@ def upload_scan(self, engagement_id, scan_type, file, active, scan_date, tags=No
670671

671672
##### Re-upload API #####
672673

673-
def reupload_scan(self, test_id, scan_type, file, active, scan_date, tags=None, build=None):
674+
def reupload_scan(self, test_id, scan_type, file, active, scan_date, tags=None, build=None, minimum_severity="Info"):
674675
"""Re-uploads and processes a scan file.
675676
676677
:param test_id: Test identifier.
@@ -690,7 +691,8 @@ def reupload_scan(self, test_id, scan_type, file, active, scan_date, tags=None,
690691
'active': ('', active),
691692
'scan_date': ('', scan_date),
692693
'tags': ('', tags),
693-
'build_id': ('', build)
694+
'build_id': ('', build),
695+
'minimum_severity': ('', minimum_severity)
694696
}
695697

696698
return self._request(

0 commit comments

Comments
 (0)