scan2html
scan2html copied to clipboard
Use trivy cache db as input
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 :)
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