Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion pkg/sbom/cpe.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,13 @@ func generateWfnAttributesForAPK(p pkgInfo) *wfn.Attributes {
return &attr
}

if strings.HasPrefix(name, "gitlab-") {
// Not all gitlab-* packages should be treated as GitLab, but most of them are.
// One notable exception is gitlab-operator, which is a Kubernetes operator
// for managing GitLab installations, and not part of GitLab itself.
// Source @ https://gitlab.com/gitlab-org/cloud-native/gitlab-operator
// Adding an explicit exception for this package here.
// If more exceptions are found, we might need a more robust way to handle them.
if strings.HasPrefix(name, "gitlab-") && name != "gitlab-operator" {
attr.Vendor = "gitlab"
attr.Product = "gitlab"
attr.SWEdition = "community"
Expand Down