diff --git a/syft/pkg/cataloger/redhat/parse_rpm_db.go b/syft/pkg/cataloger/redhat/parse_rpm_db.go index 23c5dd487a6..0da11d62d44 100644 --- a/syft/pkg/cataloger/redhat/parse_rpm_db.go +++ b/syft/pkg/cataloger/redhat/parse_rpm_db.go @@ -71,6 +71,7 @@ func parseRpmDB(_ context.Context, resolver file.Resolver, env *generic.Environm Arch: entry.Arch, Release: entry.Release, SourceRpm: entry.SourceRpm, + PGP: entry.PGP, Vendor: entry.Vendor, Size: entry.Size, ModularityLabel: &entry.Modularitylabel, diff --git a/syft/pkg/rpm.go b/syft/pkg/rpm.go index 4773403f43a..09bd3865f01 100644 --- a/syft/pkg/rpm.go +++ b/syft/pkg/rpm.go @@ -32,6 +32,7 @@ type RpmDBEntry struct { Arch string `json:"architecture"` Release string `json:"release" cyclonedx:"release"` SourceRpm string `json:"sourceRpm" cyclonedx:"sourceRpm"` + PGP string `json:"pgp" cyclonedx:"pgp"` Size int `json:"size" cyclonedx:"size"` Vendor string `json:"vendor"` ModularityLabel *string `json:"modularityLabel,omitempty"`