diff --git a/defectdojo_api/__init__.py b/defectdojo_api/__init__.py index b794fd409a5e3b3b65ad76a43d6a01a318877640..df9144c549004a8808bf5fb861828762673393d8 100644 --- a/defectdojo_api/__init__.py +++ b/defectdojo_api/__init__.py @@ -1 +1 @@ -__version__ = '0.1.0' +__version__ = '0.1.1' diff --git a/examples/dojo_ci_cd.py b/examples/dojo_ci_cd.py index ac70c2e1e275df9da67cac96788c3fc3bbbd8371..4fd8b99d388f40ab500b9b4d90fae51062aa7bf6 100644 --- a/examples/dojo_ci_cd.py +++ b/examples/dojo_ci_cd.py @@ -44,7 +44,7 @@ def create_findings(host, api_key, user, product_id, file, scanner, engagement_i """ # Instantiate the DefectDojo api wrapper - dd = defectdojo.DefectDojoAPI(host, api_key, user, proxies=proxies, timeout=90, debug=False) + dd = defectdojo.DefectDojoAPI(host, api_key, user, proxies=proxies, verify_ssl=False, timeout=360, debug=False) # Workflow as follows: # 1. Scan tool is run against build @@ -79,12 +79,14 @@ def create_findings(host, api_key, user, product_id, file, scanner, engagement_i print "Uploading scanner data." date = datetime.now() + print scanner upload_scan = dd.upload_scan(engagement_id, scanner, file, "true", date.strftime("%Y-%m-%d"), build=build) if upload_scan.success: test_id = upload_scan.id() else: print upload_scan.message + quit() findings = dd.list_findings(engagement_id_in=engagement_id, duplicate="false", active="true", verified="true") print"=============================================="