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 25, 2024
1 parent 5db18bb commit 8dcd37c
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 @@ -189,8 +189,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 8dcd37c

Please sign in to comment.