DependencyTrack / DependencyTrack/dependency-track
Add Packagist security advisories parser
- Dominant language
- Java
- Stars
- 4.2k
- Forks
- 811
- Avg merge
- 8h 39m
- Merged PRs (30d)
- 237
Description
**The `Current Behaviour` section assumes that https://github.com/DependencyTrack/dependency-track/pull/796 is already merged.**
### Current Behaviour:
When a BOM is parsed which contains Composer-type packages, there is no check if there is a reported vulnerability for the given package versions in Packagist.
### Proposed Behaviour:
As per https://packagist.org/apidoc#list-security-advisories (bottom of the page) Packagist exposes an API endpoint which could be used to check if there are any security advisories for the packages in the BOM. This API could be utilised similarly to the NPM audit advisories which is already implemented. The difference to NPM is that specific package names need to be used with Packagist, so the security advisories would only be pulled when a BOM/dependency is added.
### Additional note:
This is already being implemented but a PR will only be opened when https://github.com/DependencyTrack/dependency-track/pull/796 actually gets merged.
Contributor guide
Assessment
This issue has not been assessed yet.