Skip to content

Commit 565ee01

Browse files
committed
Example Update
1 parent 9bee85d commit 565ee01

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

defectdojo_api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.1.0'
1+
__version__ = '0.1.1'

examples/dojo_ci_cd.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def create_findings(host, api_key, user, product_id, file, scanner, engagement_i
4444
"""
4545

4646
# Instantiate the DefectDojo api wrapper
47-
dd = defectdojo.DefectDojoAPI(host, api_key, user, proxies=proxies, timeout=90, debug=False)
47+
dd = defectdojo.DefectDojoAPI(host, api_key, user, proxies=proxies, verify_ssl=False, timeout=360, debug=False)
4848

4949
# Workflow as follows:
5050
# 1. Scan tool is run against build
@@ -79,12 +79,14 @@ def create_findings(host, api_key, user, product_id, file, scanner, engagement_i
7979

8080
print "Uploading scanner data."
8181
date = datetime.now()
82+
print scanner
8283
upload_scan = dd.upload_scan(engagement_id, scanner, file, "true", date.strftime("%Y-%m-%d"), build=build)
8384

8485
if upload_scan.success:
8586
test_id = upload_scan.id()
8687
else:
8788
print upload_scan.message
89+
quit()
8890

8991
findings = dd.list_findings(engagement_id_in=engagement_id, duplicate="false", active="true", verified="true")
9092
print"=============================================="

0 commit comments

Comments
 (0)