-
Notifications
You must be signed in to change notification settings - Fork 13
ROX-12967: Fix RHCOS detection and namespace generation #1026
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
Changes from all commits
09791b3
345ee9e
7091ede
2b02db7
dfbe3a7
708c007
40ae128
eb8cf00
af43280
0c3483a
e713fb6
ebe4acf
4f35001
d8593dc
9fcc0a7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,8 +27,12 @@ func DetectComponents(name string, files analyzer.Files, parent *database.Layer, | |
var featureVersions []database.FeatureVersion | ||
var rhelfeatures *database.RHELv2Components | ||
|
||
if namespace != nil && wellknownnamespaces.IsRHELNamespace(namespace.Name) { | ||
// This is a RHEL-based image that must be scanned in a certified manner. | ||
// In the current state, RHCOS will always be handled as certified system. | ||
// If no CPEs are found on RHCOS, a note needs to be added that informs users of it. | ||
// Also, the bool logic can be refactored into a single UseCertifiedWorkflow function. | ||
// TODO(ROX-13906, ROX-14028): Implement note and refactor | ||
if namespace != nil && (wellknownnamespaces.IsRHELNamespace(namespace.Name) || wellknownnamespaces.IsRHCOSNamespace(namespace.Name)) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe for another time, but perhaps we can make something like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That is a good idea! |
||
// This is a certified image that needs to be scanned differently. | ||
// Use the RHELv2 scanner instead. | ||
packages, cpes, err := rpm.ListFeatures(files) | ||
if err != nil { | ||
|
Uh oh!
There was an error while loading. Please reload this page.