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

Failed to parse Trivy JSON report: must be str, not int #4

Open
sevject opened this issue Dec 14, 2023 · 0 comments
Open

Failed to parse Trivy JSON report: must be str, not int #4

sevject opened this issue Dec 14, 2023 · 0 comments

Comments

@sevject
Copy link

sevject commented Dec 14, 2023

Hi!

Recently I had the error:

Failed to parse Trivy JSON report: must be str, not int

And I think the cause lies in trivy_report/report_generator.py because "StartLine" is a number in the "Secrets" array in the report, not a string.

For now I just skipped the file that causes Secrets to appear in the report file since it's not actually a problem in my case and the error doesn't appear anymore but others might run into the same issue.

Kind Regards

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

No branches or pull requests

1 participant