Skip to content

Use extract_tar to extract Docker images and layers #453

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

Merged
merged 3 commits into from
Jun 17, 2022

Conversation

JonoYang
Copy link
Member

This PR replaces the use of scanpipe.pipes.scancode.extract_archive with container_inspector.utils.extract_tar when extracting Docker images and layers in the Docker pipeline. This change was made to avoid having the names of the extracted files from the Docker image from being renamed by extractcode, as we initially use extractcode for image and layer extraction. This would help with #407 and would help for some of the results for #445.

JonoYang added 3 commits June 14, 2022 17:24
    * extract_tar uses the built in tar command, which does not do filename sanitization

Signed-off-by: Jono Yang <[email protected]>
    * Update expected test results

Signed-off-by: Jono Yang <[email protected]>
@tdruez tdruez merged commit 2d342fa into main Jun 17, 2022
@tdruez tdruez deleted the 407-keep-colon-in-extracted-filename branch June 17, 2022 07:42
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

Successfully merging this pull request may close these issues.

2 participants