We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is your feature request related to a problem? Please describe.
Scorecard currently does not recognize the package manager composer (PHP).
Describe the solution you'd like
Scorecard should recognize that composer is used.
How are packages published with composer?
The default & public package registry is called Packagist.
The packages are pulled by the registry and not pushed like with most other registries.
Steps:
composer.json
"type": "library"
Detection
To detect if a project is publishing using composer, the following rules should work:
composer.json#.type
project
https://repo.packagist.org/p2/[composer.json#.name].json
response#.packages.[composer.json#.name][*].source.url
The latter two checks are a bit more involved. But depending on how accurate this checks need to be, they could also be skipped.
Describe alternatives you've considered
None.
Additional context
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is your feature request related to a problem? Please describe.
Scorecard currently does not recognize the package manager composer (PHP).
Describe the solution you'd like
Scorecard should recognize that composer is used.
How are packages published with composer?
The default & public package registry is called Packagist.
The packages are pulled by the registry and not pushed like with most other registries.
Steps:
composer.json
file with"type": "library"
Detection
To detect if a project is publishing using composer, the following rules should work:
composer.json
composer.json#.type
is not set toproject
- https://getcomposer.org/doc/04-schema.md#typehttps://repo.packagist.org/p2/[composer.json#.name].json
to see if the package is published - https://packagist.org/apidoc#get-package-dataresponse#.packages.[composer.json#.name][*].source.url
is equal to the git repository which is being scoredThe latter two checks are a bit more involved. But depending on how accurate this checks need to be, they could also be skipped.
Describe alternatives you've considered
None.
Additional context
The text was updated successfully, but these errors were encountered: