Skip to content

Commit 483e22e

Browse files
committed
debug option
1 parent 565ee01 commit 483e22e

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

examples/dojo_ci_cd.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
import os
1010
import argparse
1111

12+
DEBUG = False
13+
1214
def sum_severity(findings):
1315
severity = [0,0,0,0,0]
1416
for finding in findings.data["objects"]:
@@ -39,12 +41,12 @@ def create_findings(host, api_key, user, product_id, file, scanner, engagement_i
3941
'http': 'http://localhost:8080',
4042
'https': 'http://localhost:8080',
4143
}
42-
"""
43-
proxies=proxies
44-
"""
4544

46-
# Instantiate the DefectDojo api wrapper
47-
dd = defectdojo.DefectDojoAPI(host, api_key, user, proxies=proxies, verify_ssl=False, timeout=360, debug=False)
45+
if DEBUG:
46+
# Instantiate the DefectDojo api wrapper
47+
dd = defectdojo.DefectDojoAPI(host, api_key, user, proxies=proxies, verify_ssl=False, timeout=360, debug=False)
48+
else:
49+
dd = defectdojo.DefectDojoAPI(host, api_key, user, verify_ssl=False, timeout=360, debug=False)
4850

4951
# Workflow as follows:
5052
# 1. Scan tool is run against build

0 commit comments

Comments
 (0)