Skip to content

Commit

Permalink
Merge pull request #1427 from luhring/scan-corretto
Browse files Browse the repository at this point in the history
feat(sbom,scan): use openjdk CPE for corretto
  • Loading branch information
luhring authored Jan 31, 2025
2 parents de79b57 + a5f24cc commit ab0ebb7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/sbom/cpe.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ func generateWfnAttributesForAPK(p pkgInfo) *wfn.Attributes {
return &attr
}

if strings.HasPrefix(name, "corretto-") {
attr.Vendor = "oracle"
attr.Product = "jdk"

return &attr
}

if strings.HasPrefix(name, "dotnet-") {
attr.Vendor = "microsoft"
attr.Product = ".net"
Expand Down

0 comments on commit ab0ebb7

Please sign in to comment.