Closed AndriyDmytrenko closed 2 months ago
Hi!
When using scan with output=json it produces invalid json document:
$ bomber scan merged-bom.json --output=json > scan-report.json $ file scan-report.json scan-report.json: Unicode text, UTF-8 text, with very long lines (10321), with escape sequences $ head scan-report.json ■ Scanning Files: merged-bom.json { "meta": { "generator": "bomber", "url": "https://github.com/devops-kung-fu/bomber", "version": "0.5.0", "provider": "osv", "severityFilter": "", "date": "2024-08-21T16:37:59.927949+03:00" $
These two lines at the beginning make it invalid. So as a workaround I use command sed '1,2d' to skip them.
sed '1,2d'
I’ll check that out!
Thanks for noticing that! This will be fixed in 0.5.1
Hi!
When using scan with output=json it produces invalid json document:
These two lines at the beginning make it invalid. So as a workaround I use command
sed '1,2d'
to skip them.