trivy
trivy copied to clipboard
bug(template): incorrect image name for asff template
Description
asff template uses incorrect image name for language packages.
See example in #6003
Also we don't add image name for misconfigurations and secrets.
Discussed in https://github.com/aquasecurity/trivy/discussions/6003
We use []Result for *.tpl templates:
https://github.com/aquasecurity/trivy/blob/5924c021da7fba7e937cff6332ebf9ca317ebf80/pkg/report/template.go#L79
But only Report struct contains information about image.
I think we can use Report instead of []Result and update all templates from contrib folder.
@knqyf263 wdyt? If you agree with this - i will start working on this task.