-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added php lockfile parser #310
base: main
Are you sure you want to change the base?
Conversation
@@ -32,6 +32,7 @@ const ( | |||
EcosystemTerraform = "Terraform" | |||
EcosystemTerraformModule = "TerraformModule" | |||
EcosystemTerraformProvider = "TerraformProvider" | |||
EcosystemPHPComposer = "Composer" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Ecosystem for PHP Composer is actually called Packagist
https://osv.dev/list?ecosystem=Packagist
"github.com/safedep/vet/pkg/models" | ||
) | ||
|
||
type ComposerJSON struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment with reference to Composer JSON specification from official source? We need to see if we need any other information like dependency relationships for building dependency graph.
@@ -259,6 +263,8 @@ func (pw *parserWrapper) Ecosystem() string { | |||
return models.EcosystemGitHubActions | |||
case customParserTerraform: | |||
return models.EcosystemTerraform | |||
case customParserComposer: | |||
return models.EcosystemPHPComposer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be packagist ecosystem
@@ -51,6 +52,7 @@ var supportedEcosystems map[string]bool = map[string]bool{ | |||
models.EcosystemSpdxSBOM: true, | |||
models.EcosystemGitHubActions: true, | |||
models.EcosystemTerraform: true, | |||
models.EcosystemPHPComposer: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not required. We should just use the Packagist
ecosystem
@insaaniManav As I read more about Composer, I see there are two files
This is similar to I think we should spend some time reading about Composer and decide on how to handle it. |
According to my research
|
Fixes #257