anchore / grype

A vulnerability scanner for container images and filesystems
Apache License 2.0
8.17k stars 528 forks source link

Template models use go structs instead of JSON shape #1881

Open wagoodman opened 1 month ago

wagoodman commented 1 month ago

Similar to https://github.com/anchore/syft/pull/2542 the template output appears to be using the go structs, which requires users to know about the specific struct names, which may differ (and do) from the JSON output. We should adjust all templates to work with strictly the grype json output.

LeonKolataAtGov commented 1 month ago

Hello, we are currently introducing Grype and we also have this kind of issue.