aws-samples / aws-security-hub-scan-with-trivy

MIT No Attribution
12 stars 26 forks source link

Fixes to trivy parsing #2

Open CyranoB opened 3 years ago

CyranoB commented 3 years ago

Trivy reports sometimes miss the Title property causing the script to convert to SecurityHub to fail.

sean-redmond commented 3 years ago

Thanks for this PR - fixed an issue I had with title parsing:

#python3 sechub_parser.py Traceback (most recent call last): File "sechub_parser.py", line 43, in <module> cveTitle = str(p['Title']) KeyError: 'Title'