mirror of
https://github.com/anchore/syft.git
synced 2026-11-03 07:56:36 +01:00
Extract language and package type from pURLs on SBOM decode (#777)
* add language detection from pURLs Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * add package type detection from pURLs Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * add cargo and npm pURL support Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * fix npm tests and linting Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
@@ -18,6 +18,9 @@ const (
|
||||
|
||||
// this qualifier is not in the pURL spec, but is used by grype to perform indirect matching based on source information
|
||||
purlUpstreamQualifier = "upstream"
|
||||
|
||||
purlCargoPkgType = "cargo"
|
||||
purlGradlePkgType = "gradle"
|
||||
)
|
||||
|
||||
type urlIdentifier interface {
|
||||
|
||||
Reference in New Issue
Block a user