project-copacetic / copacetic

🧵 CLI tool for directly patching container images!
https://project-copacetic.github.io/copacetic/
Apache License 2.0
960 stars 63 forks source link

[BUG] fix openvex report oci id #667

Open sozercan opened 3 months ago

sozercan commented 3 months ago

Version of copa

No response

Expected Behavior

it should be:

"@id": "pkg:oci/nginx@sha256....",

https://github.com/package-url/purl-spec/blob/master/PURL-TYPES.rst#oci

However, I am not sure if we can do this since image is not at the registry at this time so sha256 will not be accurate

Actual Behavior

vex statement output has

"@id": "pkg:oci/docker.io/library/nginx:1.21.6-patched",

https://project-copacetic.github.io/copacetic/website/output

Steps To Reproduce

No response

Are you willing to submit PRs to contribute to this bug fix?