Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON output produces invalid json document #230

Open
AndriyDmytrenko opened this issue Aug 21, 2024 · 1 comment
Open

JSON output produces invalid json document #230

AndriyDmytrenko opened this issue Aug 21, 2024 · 1 comment
Assignees

Comments

@AndriyDmytrenko
Copy link

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"
$ 
image

These two lines at the beginning make it invalid.
So as a workaround I use command sed '1,2d' to skip them.

@djschleen djschleen self-assigned this Sep 1, 2024
@djschleen
Copy link
Member

I’ll check that out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants