Skip to content

Commit

Permalink
Use distro ID as package name and string representation as description
Browse files Browse the repository at this point in the history
Signed-off-by: Jose D. Gomez R <[email protected]>
  • Loading branch information
josegomezr committed Nov 19, 2024
1 parent 04e9f71 commit 7fd41dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syft/format/common/spdxhelpers/to_format_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ func toOSPackage(s sbom.SBOM) *spdx.Package {
return nil
}
return &spdx.Package{
PackageName: distro.Name,
PackageDescription: distro.PrettyName,
PackageName: distro.ID,
PackageDescription: distro.String(),
PackageSPDXIdentifier: spdx.ElementID(helpers.SanitizeElementID(fmt.Sprintf("%s-%s", prefixOS, strings.ToLower(distro.ID)))),
PackageVersion: distro.VersionID,
PrimaryPackagePurpose: spdxPrimaryPurposeOS,
Expand Down

0 comments on commit 7fd41dd

Please sign in to comment.