Best practices for configuring Composer projects to be scanned by CybeDefend, with an emphasis on lockfiles.
composer.json
and composer.lock
files. However, you’ll get the best results if you have a lockfile with pinned dependencies.
composer.lock
file:
composer.lock
to your repository. This ensures that the entire team, and CybeDefend, see the exact dependency versions.
composer update
or composer require
and commit the updated lockfile.
composer.json
file, we strongly recommend generating and committing the composer.lock
file for more accurate vulnerability detection.File Examples |
---|
composer.json , composer.lock |