Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronweaver committed Feb 2, 2018
2 parents 8adad25 + 8a1a014 commit e87df46
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions defectdojo_api/defectdojo.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ def set_finding(self, finding_id, product_id, engagement_id, test_id, title=None

##### Upload API #####

def upload_scan(self, engagement_id, scan_type, file, active, scan_date, tags=None, build=None):
def upload_scan(self, engagement_id, scan_type, file, active, scan_date, tags=None, build=None, minimum_severity="Info"):
"""Uploads and processes a scan file.
:param application_id: Application identifier.
Expand All @@ -673,7 +673,8 @@ def upload_scan(self, engagement_id, scan_type, file, active, scan_date, tags=No
'active': ('', active),
'scan_date': ('', scan_date),
'tags': ('', tags),
'build_id': ('', build)
'build_id': ('', build),
'minimum_severity': ('', minimum_severity)
}

return self._request(
Expand All @@ -683,7 +684,7 @@ def upload_scan(self, engagement_id, scan_type, file, active, scan_date, tags=No

##### Re-upload API #####

def reupload_scan(self, test_id, scan_type, file, active, scan_date, tags=None, build=None):
def reupload_scan(self, test_id, scan_type, file, active, scan_date, tags=None, build=None, minimum_severity="Info"):
"""Re-uploads and processes a scan file.
:param test_id: Test identifier.
Expand All @@ -703,7 +704,8 @@ def reupload_scan(self, test_id, scan_type, file, active, scan_date, tags=None,
'active': ('', active),
'scan_date': ('', scan_date),
'tags': ('', tags),
'build_id': ('', build)
'build_id': ('', build),
'minimum_severity': ('', minimum_severity)
}

return self._request(
Expand Down

0 comments on commit e87df46

Please sign in to comment.