Skip to content
Snippets Groups Projects
Commit cf9f3cd0 authored by aaron.weaver2@gmail.com's avatar aaron.weaver2@gmail.com
Browse files

Adding support for build info

parent 9db7d600
Branches
Tags
No related merge requests found
__version__ = '1.1.2'
__version__ = '1.1.3'
......@@ -659,6 +659,26 @@ class DefectDojoAPI(object):
return self._request('PUT', 'findings/' + str(finding_id) + '/', data=data)
##### Build Details API #####
def build_details(self, engagement_id, json):
"""Uploads commit file changes to an engagement.
:param engagement_id: Engagement identifier.
:param file: File/Json with meta data to be uploaded.
"""
data = {
'file': json,
'engagement': ('', self.get_engagement_uri(engagement_id))
}
return self._request(
'POST', 'build_details/',
files=data
)
##### Upload API #####
def upload_scan(self, engagement_id, scan_type, file, active, scan_date, tags=None, build=None, minimum_severity="Info"):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment