Add support for CleanStart OS vulnerability scanning#3281
Open
cleanstart-community-admin wants to merge 2 commits intoanchore:mainfrom
Open
Add support for CleanStart OS vulnerability scanning#3281cleanstart-community-admin wants to merge 2 commits intoanchore:mainfrom
cleanstart-community-admin wants to merge 2 commits intoanchore:mainfrom
Conversation
Signed-off-by: cleanstart-community-admin <community-admin@cleanstart.com>
Signed-off-by: cleanstart-community-admin <community-admin@cleanstart.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds CleanStart OS as a supported distro type in Grype, enabling accurate vulnerability scanning of CleanStart-based container images using the CleanStart Security Advisories database.
Motivation
CleanStart OS container images were previously unrecognised by Grype — scans produced no vulnerability results and emitted distro-detection warnings. Users scanning CleanStart images had no way to detect known vulnerabilities in installed packages.
Changes
Clnstrtdistro type constant ingrype/distro/type.goclnstrtandcleanstartto theIDMappingtable —clnstrtis the current/etc/os-releaseidentifier;cleanstartsupports an in-progress upstream renameClnstrtto theAlldistro sliceRolling: trueOS specifier overrides for both identifiers ingrype/db/v6/data.go— CleanStart is a rolling distro and does not pin versionsCleanStartecosystem topkg.ApkPkg— CleanStart uses the APK package formattestdata/os/clnstrtandtestdata/os/cleanstarttest fixturesdistro_test.goandtype_test.goRelated
Type of change
Checklist