Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/magento/composer-dependency-version-audit-plugin
validating packages through a composer plugin
https://github.com/magento/composer-dependency-version-audit-plugin
Last synced: 5 days ago
JSON representation
validating packages through a composer plugin
- Host: GitHub
- URL: https://github.com/magento/composer-dependency-version-audit-plugin
- Owner: magento
- License: osl-3.0
- Created: 2021-09-09T16:25:16.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-25T01:26:07.000Z (over 1 year ago)
- Last Synced: 2024-10-20T23:15:29.650Z (23 days ago)
- Language: PHP
- Homepage:
- Size: 46.9 KB
- Stars: 4
- Watchers: 9
- Forks: 8
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: COPYING.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Composer dependency version audit plugin
This composer plugin is used to protect Adobe Commerce merchants from Dependency confusion attacks. It will detect when a public version of a package
at packagist.org has a higher version than the one available from a private like repo.magento.com. When you try to install/update packages with composer,
if it detects a potential issue, the plugin will give you a recommendation message and stop the process.
By default the plugin will obey the stability configuration in the composer.json config file which is `stable` by default. If you would like to be covered for unstable versions of a package (dev, alpha, beta, RC), you can either change the `minimum-stability` level or explicit require a dev version or only betas with the version constraint for ex: ‘^1.0.2-beta1’
## Installation```shell
composer require magento/composer-dependency-version-audit-plugin
```## Usage
When you install/update composer, the composer plugin will stop the process if it detects a potential Dependency Confusion attack.
In that case, composer install/update will fail with an error message similar to:```composer log
Higher matching version x.x.x of package/name was found in public repository packagist.org than x.x.x in private.repo.
Public package might've been taken over by a malicious entity;
please investigate and update package requirement to match the version from the private repository.
```