8000 Add option to flatten layers in container scan · Issue #1633 · aboutcode-org/scancode.io · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add option to flatten layers in container scan #1633

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pombredanne opened this issue Mar 19, 2025 · 1 comment
Open

Add option to flatten layers in container scan #1633

pombredanne opened this issue Mar 19, 2025 · 1 comment

Comments

@pombredanne
Copy link
Member

It would be great to have an option to flatten layers in a container scan. In many common use cases, the lower layers do not matter too much and having a squashed, flat view on a single resulting file system with only "one" layer would be good enough.

The contain-inspector can do this with https://github.com/aboutcode-org/container-inspector/blob/5c654da7c5161060ce57975347526a0e1963313d/src/container_inspector/image.py#L414

@mjherzog
Copy link
Member

The layer-level command data can be very important for analyzing files with unknown origin and license so this needs to be an option not the default. Perhaps there should be an add-on pipeline to flatten container scan results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0