trivy icon indicating copy to clipboard operation
trivy copied to clipboard

bug(template): incorrect image name for asff template

Open DmitriyLewen opened this issue 1 year ago • 1 comments

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

DmitriyLewen avatar Jan 26 '24 06:01 DmitriyLewen

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.

DmitriyLewen avatar Jan 30 '24 06:01 DmitriyLewen