feat: Add PURL list input/output format#3853
Merged
kzantow merged 15 commits intoanchore:mainfrom May 12, 2025
Merged
Conversation
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
wagoodman
reviewed
May 7, 2025
wagoodman
reviewed
May 7, 2025
wagoodman
reviewed
May 7, 2025
wagoodman
reviewed
May 7, 2025
wagoodman
reviewed
May 7, 2025
wagoodman
approved these changes
May 7, 2025
Contributor
wagoodman
left a comment
There was a problem hiding this comment.
Added a few comments, but crosses the threshold of mergable for me 👍
Signed-off-by: Keith Zantow <kzantow@gmail.com>
spiffcs
added a commit
that referenced
this pull request
May 13, 2025
* main: Translate Portage license strings to SPDX expressions (#1763) fix: stop emitting redis redis CPE for PHP PECL redis (#3881) feat: Add PURL list input/output format (#3853) chore(deps): update CPE dictionary index (#3877) chore(deps): update tools to latest versions (#3878) do not search binary contents for version for go package (#3874) fix: remove race when writing errors in generic cataloger (#3875) clear devel version for go packages (#3873) Signed-off-by: Christopher Phillips <32073428+spiffcs@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.
Description
This PR adds a
purlsformat (with aliases:purl). This allows a user to export and by association convert to and from a list of PURLs:Additionally, after reading an SBOM, formats are able to "enhance" Syft package data from information in the PURL if the data isn't present in the package. For example: a
mavenPURL includes the GroupID, something like:pkg:maven/org.apache/something, but this GroupID was not being mapped to the internal data location for GroupID which could result in false positives in Grype. This happens for PURL input as well as other formats including SPDX and CycloneDX in order to improve support for SBOMs created with tools other than Syft.Type of change
Checklist: