You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an aggregation use case. I have multiple jobs building containers and scanning them. I can easily produce a json for each with grype but come release time, i'd like to aggregate all the jsons from all the container scans and produce a single meta html report.
Aggregating the jsons is routine and I can obviously create something custom to apply the template against the json data. However, can you think of way to reuse what is existing to get this done? Would be nice if there was a grype command that did it, since I presume much of the logic is already in place.
May be a grype template ./grype.json -o template:out.html -template myHtmlTemplate.tmpl
The text was updated successfully, but these errors were encountered:
👋 Thanks for the issue @nvp152! As far as aggregation is concerned I think that's where we draw the invisible line of "out of grypes scope". We do have a great command as you pointed out surrounding the template outputs with examples here: https://github.com/anchore/grype/tree/main/templates
I would very much encourage and promote a separate tool that was written to take n number of templates generated by grype and build this view your describing.
If you were only asking about a single scan use case then definitely check out the template folder we already have to see if that fits your use case =)
This is an aggregation use case. I have multiple jobs building containers and scanning them. I can easily produce a json for each with grype but come release time, i'd like to aggregate all the jsons from all the container scans and produce a single meta html report.
Aggregating the jsons is routine and I can obviously create something custom to apply the template against the json data. However, can you think of way to reuse what is existing to get this done? Would be nice if there was a grype command that did it, since I presume much of the logic is already in place.
May be a
grype template ./grype.json -o template:out.html -template myHtmlTemplate.tmpl
The text was updated successfully, but these errors were encountered: