Skip to content

Commit

Permalink
Merge pull request #1226 from luhring/gitlab-cpe
Browse files Browse the repository at this point in the history
fix(scan): use correct CPE for GitLab components
  • Loading branch information
luhring authored Oct 7, 2024
2 parents fd07d91 + e1ca901 commit 210d064
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/sbom/cpe.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ func generateWfnAttributesForAPK(p pkgInfo) *wfn.Attributes {
return &attr
}

if strings.HasPrefix(name, "gitlab-") {
attr.Vendor = "gitlab"
attr.Product = "gitlab"
attr.SWEdition = "community"

return &attr
}

return nil
}

Expand Down

0 comments on commit 210d064

Please sign in to comment.