Vulnerability Report's report.artifact.digest field is the artifact's image_id not digest #2259
Labels
kind/bug
Categorizes issue or PR as related to a bug.
lifecycle/stale
Denotes an issue or PR has remained open with no activity and will be auto-closed.
What steps did you take and what happened:
We've been trying to understand why the
report.artifact.digest
value doesn't match the actual image digest.After digging a bit through the code, we realized that the value of
report.artifact.digest
is actually the image_id.here's an example:
per above the digest is
sha256:dde063663e676fb551255dcc41f7b67fbb913becaccadde12da2c3a0abc236eb
however, when we scan the same image with
trivy
cli, we get the following:as you can see, the
report.artifact.digest
value isMetadata.ImageID
in the Trivy report:The actual Digest is in the
Metadata.RepoDigests
field:What did you expect to happen:
We expect that
report.artifact.digest
would show the actual image digest value, instead of image_id.perhaps it's worth to include both?
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Environment:
trivy-operator version
): v0.22.0kubectl version
): 1.28.13The text was updated successfully, but these errors were encountered: