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

Use trivy cache db as input #142

Open
hackschnitzel09 opened this issue Dec 20, 2024 · 1 comment
Open

Use trivy cache db as input #142

hackschnitzel09 opened this issue Dec 20, 2024 · 1 comment
Assignees

Comments

@hackschnitzel09
Copy link

Hi,
It would be very cool, to be able to use the trivy db (https://trivy.dev/latest/docs/configuration/cache/) as the input.
At the moment I am running through all my docker images with trivy image and generate a report.json which then is used to generate a html with trivy scan2html generate. So I kind of store everything twice and in the report its hard to figure from which image the cve is.

Thanks :)

@fatihtokus
Copy link
Owner

Hi @hackschnitzel09 ,

Thanks for using scan2html and reporting this. A couple of things:

  • You can specify the report name and title at the same time. i.e: trivy scan2html generate --scan2html-flags --from report-for-image1.json --output report-for-image1.html --report-title 'Report For Image1 ....'
  • Scan2html is automatically passing all trivy flags to it. So caching should work. i.e. trivy scan2html --cache-dir /tmp/trivy/ image python:3.4-alpine3.9 --scan2html-flags --output report-for-image1.html --report-title 'Report For Image1 ....'

Please give it a go and let me know the result.

Regards,
Fatih

@fatihtokus fatihtokus self-assigned this Dec 20, 2024
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

2 participants