Expose RPMTAG_PACKAGER and RPMTAG_URL header tags#18
Open
MackJM wants to merge 3 commits into
Open
Conversation
Surface the RPM Packager (tag 1015) and URL (tag 1020) header values on PackageInfo, mirroring how Vendor (tag 1011) is already decoded, so downstream consumers can populate NTIA supplier and project-homepage fields. Signed-off-by: MackJM <33904877+MackJM@users.noreply.github.com>
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PackageInfoalready exposesVendor(tag 1011) but not the Packager or URLheader tags. This adds them, decoded the same way Vendor is:
RPMTAG_PACKAGER(1015) →PackagerRPMTAG_URL(1020) →URLBoth normalize
(none)to an empty string, matching the existing Vendor handling.I need these downstream for SBOM generation in syft: Packager/Vendor feed the NTIA
supplier field, and URL feeds the package homepage in CycloneDX and SPDX output.
Tests added in
pkg/rpmdb_test.goagainst the existing fixtures;go test ./...passes.This will be used to try and address the NTIA minimum requires in Syft
Needed by anchore/syft#4991, which implements package supplier determination (anchore/syft#1961, NTIA anchore/syft#632)