Replies: 12 comments
-
I agree, some additional information and formatting would be greatly beneficial to to the HTML template. I think the most useful would be to have a total number of vulnerabilities, |
Beta Was this translation helpful? Give feedback.
-
i had an idea to create a custom Trivy plugin for html templates. |
Beta Was this translation helpful? Give feedback.
-
I like the idea of being able to filter the columns (per severity for example), and arrange it in some way, say, alphabetically. My main issue is that I don't know much about Go lang, like I said before. So I'm not sure how to contribute for this project (development locally and test it). It would be nice if we had some docs teaching how to test the HTML report feature using some example scan JSON, just in case we want to work in this feature. |
Beta Was this translation helpful? Give feedback.
-
do you mean that it should be done via JavaScript? |
Beta Was this translation helpful? Give feedback.
-
Yes, I think that doing this with JavaScript would be easier, and we would get more freedom to implement other features in the future. As an example: But initially I think we can keep something like a checkbox menu with all the possible severity values, and let the user pick which values to present in the table. I like the idea of using those chip elements in some control mechanism to select what to show: |
Beta Was this translation helpful? Give feedback.
-
Hi guys, I am planning to implement this. Are you still interested? Regards, |
Beta Was this translation helpful? Give feedback.
-
For sure @fatihtokus ! |
Beta Was this translation helpful? Give feedback.
-
@afdesk, I see you have a trivy plugin(scan2html) that can be enhanced to support filtering/sorting. What do you think? |
Beta Was this translation helpful? Give feedback.
-
@fatihtokus yes, there is an idea to create such custom plugin. but unfortunately I haven't tested it yet |
Beta Was this translation helpful? Give feedback.
-
@64J0 , @KyleK1782 , @afdesk guys, I have created the initial version of my trivy plugin (https://github.com/fatihtokus/scan2html). Please have a look and give your feedback: $ trivy plugin install github.com/fatihtokus/scan2html $ trivy scan2html -h Usage: trivy scan2html [-h,--help] command target filename Scan imagetrivy scan2html image alpine:latest interactive_result.html Scan a local foldertrivy scan2html config . interactive_result.html |
Beta Was this translation helpful? Give feedback.
-
v0.0.2 is out, filtering column is added! |
Beta Was this translation helpful? Give feedback.
-
Hi all, I would like to hear from the community if having such a trivy plugin(https://github.com/fatihtokus/scan2html) is useful. It creates a well-formated filterable/sortable html report. Please have a look and give your feedback. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
-
Description:
I want to be able to run some common operations for tables in the trivy HTML report. Right now it's not interactive, so we can't group vulnerabilities by their criticality.
After checking the repository I found this file : https://github.com/aquasecurity/trivy/blob/8d5882be03d3e27eeaa48825b064d4235974a730/contrib/html.tpl, that I believe is related to the HTML report.
I would be glad to help this project but I'm not versed in Go Lang syntax, so my question is:
Beta Was this translation helpful? Give feedback.
All reactions