scan2html icon indicating copy to clipboard operation
scan2html copied to clipboard

html report not readable

Open Lahcentidrarin opened this issue 1 year ago • 7 comments

i run a trivy scan on my cluster k8s with the plugin scan2html, i got a report not readable on browsers i tested it on https://codepen.io/ and i got a javascript error "Uncaught TypeError: Cannot read properties of undefined (reading 'forEach')"

trivy version: 0.52.2 scan2html version : latest

any solution please

Lahcentidrarin avatar Jun 24 '24 14:06 Lahcentidrarin

Hi @Lahcentidrarin ,

Thank you for using our plugin. Could you give us more details?

  1. What command did you execute?
  2. What is the size of the report?
  3. Could you upload a screenshot?

Regards, Fatih

fatihtokus avatar Jun 24 '24 16:06 fatihtokus

Hi @fatihtokus

Thank you for your response

Here is the command: trivy scan2html k8s --report all --include-namespaces xxx interactive_result.html the size is 1.1M actualy i got a white page on browser and when i refresh i see kind some of the content but it disappear quickly.

Lahcentidrarin avatar Jun 24 '24 19:06 Lahcentidrarin

Hi @Lahcentidrarin ,

1- Can you try following and let me know if still it works? trivy scan2html k8s --report all interactive_result.html 2- Can you share the interactive_result.html file ? 3- Can you share the console(like below) that shows the error stack trace so that we can debug? image

fatihtokus avatar Jun 26 '24 17:06 fatihtokus

Hi @fatihtokus Unfortunately i can't share the report here is sceen of the console Capture d’écran 2024-07-01 122241

Lahcentidrarin avatar Jul 01 '24 10:07 Lahcentidrarin

Hi @Lahcentidrarin,

Unfortunately, without the report, we couldn't reproduce it locally. But we put some extra checks with the latest release. Please try and let us know.

please consider giving us a GitHub star ⭐️. Thank you!

fatihtokus avatar Jul 09 '24 20:07 fatihtokus

Hi @Lahcentidrarin,

By any chance, have you tried the latest version?

fatihtokus avatar Aug 01 '24 14:08 fatihtokus

Hi @Lahcentidrarin ,

Have you tried the latest version which has excellent features like creating report from multiple json scan results?

fatihtokus avatar Sep 27 '24 20:09 fatihtokus