Replies: 2 comments
-
|
Any progress on this, or viable workarounds? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Workaround: Use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Proposing here that trivy add support for muti-arch containers containing
application/vnd.oci.image.index.v1+jsontypes, listing multiple items in themanifestsarray. This is a standard index, that can be tagged for a single app that can run on multiple architectures. At runtime, clients will pull the correct architecture. But it could be used to scan all architectures for the index and combined into a single report.Example index:
{ "schemaVersion": 2, "mediaType": "application/vnd.oci.image.index.v1+json", "manifests": [ { "mediaType": "application/vnd.oci.image.manifest.v1+json", "size": 479, "digest": "sha256:79d83d0a795f541712e512e4c2e6dfd033d97d88b509d20edf670d138aba59ca", "platform": { "architecture": "amd64", "os": "linux" } }, { "mediaType": "application/vnd.oci.image.manifest.v1+json", "size": 479, "digest": "sha256:32cb0987f1baf24ce74e75c94ca49867252508c7c308bec2b4b473237ce3d3ff", "platform": { "architecture": "arm64", "os": "linux" } } ], "annotations": { "org.opencontainers.image.created": "2024-10-30T20:07:30Z", "org.opencontainers.image.revision": "68757c1e4818c1f9291ba0b9022a7e9a44c1fa77", "org.opencontainers.image.source": "git+ssh://github.com/myorg/myapp.git" } }When scanning a multi-arch TAR file today, trivy fails. Providing
--platformas an option totrivy imageproduces the same error. (note: I triedaarch64andarm64formats)Target
Container Image
Scanner
None
Beta Was this translation helpful? Give feedback.
All reactions