Skip to content

Commit 7854bd9

Browse files
authored
Merge pull request #4 from magento-cia/AC-7983
AC-7983 update README.md
2 parents 6af6280 + 721010a commit 7854bd9

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

Diff for: README.md

+24-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,24 @@
1-
# composer-dependency-version-audit-plugin
2-
validating packages through a composer plugin
1+
# Composer dependency version audit plugin
2+
3+
This composer plugin is used to protect Adobe Commerce merchants from Dependency confusion attacks. It will detect when a public version of a package
4+
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,
5+
if it detects a potential issue, the plugin will give you a recommendation message and stop the process.
6+
<br />
7+
<br />
8+
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’
9+
## Installation
10+
11+
```shell
12+
composer require magento/composer-dependency-version-audit-plugin
13+
```
14+
15+
## Usage
16+
17+
When you install/update composer, the composer plugin will stop the process if it detects a potential Dependency Confusion attack.
18+
In that case, composer install/update will fail with an error message similar to:
19+
20+
```composer log
21+
Higher matching version x.x.x of package/name was found in public repository packagist.org than x.x.x in private.repo.
22+
Public package might've been taken over by a malicious entity;
23+
please investigate and update package requirement to match the version from the private repository.
24+
```

0 commit comments

Comments
 (0)