openclarity / vmclarity

VMClarity is a tool for agentless detection and management of Virtual Machine Software Bill Of Materials (SBOM) and vulnerabilities
openclarity.io
Apache License 2.0
93 stars 22 forks source link

refactor(scanner): separate GetImage from ToDirectory #1823

Closed akijakya closed 1 week ago

akijakya commented 1 week ago

So if the image metadata is also needed, we don't get the image twice.

Description

Put getting the image in a separate function so that if the image metadata is also needed outside of extracting it to a directory, we don't need to get the image twice.

Type of Change

Checklist

github-actions[bot] commented 1 week ago

Hey!

Your images are ready: