Skip to content

Commit

Permalink
updated get_findings to work with csv string list
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronButler-Veracode committed Oct 21, 2024
1 parent 783b8ac commit f5db472
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions veracode_api_py/findings.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,15 @@ def get_findings(self,app: UUID,scantype='STATIC',annot='TRUE',request_params=No
if request_params == None:
request_params = {}

if scantype in ['STATIC', 'DYNAMIC', 'MANUAL','SCA']:
request_params['scan_type'] = scantype
scantypes = ""
scantype = scantype.split(',')
for st in scantype:
if st in ['STATIC', 'DYNAMIC', 'MANUAL','SCA']:
if len(scantypes) > 0:
scantypes += ","
scantypes += st
if len(scantypes) > 0:
request_params['scan_type'] = scantypes
#note that scantype='ALL' will result in no scan_type parameter as in API

request_params['include_annot'] = annot
Expand Down

0 comments on commit f5db472

Please sign in to comment.