Support image scanning that don't find vulnerabilities
@@ -49,7 +49,7 @@ class DockerImageScanningIntegration:
'description': x.get('description'),
'riskFactors': x.get('riskFactors'),
'publishedDate': (datetime.now() - timedelta(days=x.get('publishedDays', 0))).isoformat()
- }, twistcli_scan_result['results'][0]['vulnerabilities']))
+ }, twistcli_scan_result['results'][0].get('vulnerabilities', [])))
payload = {
'sourceId': bc_integration.repo_id,
'branch': bc_integration.repo_branch,
