Skip to content
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

Implement "composer audit" for NPM packages #159

Open
prudloff-insite opened this issue Oct 9, 2023 · 1 comment
Open

Implement "composer audit" for NPM packages #159

prudloff-insite opened this issue Oct 9, 2023 · 1 comment

Comments

@prudloff-insite
Copy link

It would be useful if composer audit could work for npm-asset/ packages.
composer audit reads a security-advisories key in the JSON returned by the repository.
Some other third-party Composer repositories have already implemented it (for example: https://repo.packagist.org/p2/drupal/core.json).
It should be possible to call the the NPM audit API (https://registry.npmjs.org/-/npm/v1/security/audits) and convert the result to the Composer format when building the Composer repository.

(I created a Composer plugin that does this but as a separate command: https://github.com/prudloff-insite/composer-npm-audit)

@SilverFire
Copy link
Member

Hello.
Thank you for your idea!
We don't have enough resources to implement this enhancement right away, but this repo is tagged with the hacktoberfest tag, so maybe someone would like to push this idea to the implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants