Skip to content

Commit 5c49260

Browse files
committed
refactor: use explicit matching instead of prefix
1 parent 0d8f17e commit 5c49260

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/sbom/cpe.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func generateWfnAttributesForAPK(p pkgInfo) *wfn.Attributes {
6060
// Source @ https://gitlab.com/gitlab-org/cloud-native/gitlab-operator
6161
// Adding an explicit exception for this package here.
6262
// If more exceptions are found, we might need a more robust way to handle them.
63-
if strings.HasPrefix(name, "gitlab-") && !strings.HasPrefix(name, "gitlab-operator") {
63+
if strings.HasPrefix(name, "gitlab-") && name != "gitlab-operator" && name != "gitlab-operator-fips" {
6464
attr.Vendor = "gitlab"
6565
attr.Product = "gitlab"
6666
attr.SWEdition = "community"

0 commit comments

Comments
 (0)