mirror of
https://github.com/anchore/syft.git
synced 2026-11-01 23:16:30 +01:00
PHP parser composer.lock (#609)
* PHP parse composer.lock Signed-off-by: Nikita <33390074+Zilborg@users.noreply.github.com> * rename PHP package type Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * add PHP composer package support to source info SPDX helper Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * update directory cataloger integration tests (make exception for images) Signed-off-by: Alex Goodman <alex.goodman@anchore.com> Co-authored-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
@@ -14,6 +14,7 @@ const (
|
||||
RpmPkg Type = "rpm"
|
||||
NpmPkg Type = "npm"
|
||||
PythonPkg Type = "python"
|
||||
PhpComposerPkg Type = "php-composer"
|
||||
JavaPkg Type = "java-archive"
|
||||
JenkinsPluginPkg Type = "jenkins-plugin"
|
||||
GoModulePkg Type = "go-module"
|
||||
@@ -29,6 +30,7 @@ var AllPkgs = []Type{
|
||||
RpmPkg,
|
||||
NpmPkg,
|
||||
PythonPkg,
|
||||
PhpComposerPkg,
|
||||
JavaPkg,
|
||||
JenkinsPluginPkg,
|
||||
GoModulePkg,
|
||||
@@ -47,6 +49,8 @@ func (t Type) PackageURLType() string {
|
||||
return "deb"
|
||||
case PythonPkg:
|
||||
return packageurl.TypePyPi
|
||||
case PhpComposerPkg:
|
||||
return packageurl.TypeComposer
|
||||
case NpmPkg:
|
||||
return packageurl.TypeNPM
|
||||
case JavaPkg, JenkinsPluginPkg:
|
||||
|
||||
Reference in New Issue
Block a user