Skip to content

Commit

Permalink
Adding support for build info
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronweaver committed Mar 22, 2018
1 parent 9db7d60 commit cf9f3cd
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion defectdojo_api/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.1.2'
__version__ = '1.1.3'
20 changes: 20 additions & 0 deletions defectdojo_api/defectdojo.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,26 @@ def set_finding(self, finding_id, product_id, engagement_id, test_id, title=None

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"):
Expand Down

0 comments on commit cf9f3cd

Please sign in to comment.