-
Notifications
You must be signed in to change notification settings - Fork 43
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
OSInfo: Distroless Scanner #345
Conversation
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@chainguard.dev>
This commit refactors some of the tarcode in the layer scanner to reuse it some of the functions. Signed-off-by: Adolfo García Veytia (Puerco) <puerco@chainguard.dev>
This commit moves some messages to the debugger level to reduce the verbosity of bom when running. Signed-off-by: Adolfo García Veytia (Puerco) <puerco@chainguard.dev>
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@chainguard.dev>
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@chainguard.dev>
This commit fixes a bug where the debian scanner would drop the last OS pacakge read from the database Signed-off-by: Adolfo García Veytia (Puerco) <puerco@chainguard.dev>
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@chainguard.dev>
This commit fixes a bug in the version encoding when generating purls from image references. Signed-off-by: Adolfo García Veytia (Puerco) <puerco@chainguard.dev>
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@chainguard.dev>
After this one merges we should cut a new release |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cpanato, puerco The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind bug
/kind feature
What this PR does / why we need it:
This PR adds a new OS Info image scanner to support the scanning of images based on distroless.
At this time it will read OS packages from the split dpkg database used by distroless. Support for files could be added later, the test fixtures include file data when we decide to implement it.
The layer scanner now has a function to extract directories from tarballs, I refactored the tar logic to reuse some of the code among the different tar functions.
I'm also adding two bug fixes:
All the affected tests are fixed as those bugs modify data expected by the test cases.
Plus: I moved some of the needless verbose messages in the SPDX package to Debug to reduce the verbosity (this is on its own commit so it should be easy to hide when reviewing)
Which issue(s) this PR fixes:
Follow-up to #342
Special notes for your reviewer:
/assign @cpanato @saschagrunert
Does this PR introduce a user-facing change?