mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Allow to exclude packages from the minimum package age
This commit is contained in:
parent
5898fc851a
commit
6815b62019
9 changed files with 387 additions and 1 deletions
16
README.md
16
README.md
|
|
@ -212,6 +212,22 @@ You can set the minimum package age through multiple sources (in order of priori
|
|||
}
|
||||
```
|
||||
|
||||
### Excluding Packages
|
||||
|
||||
Exclude trusted packages from minimum age filtering via environment variable or config file (both are merged):
|
||||
|
||||
```shell
|
||||
export SAFE_CHAIN_NPM_MINIMUM_PACKAGE_AGE_EXCLUSIONS="react,@aikidosec/safe-chain"
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"npm": {
|
||||
"minimumPackageAgeExclusions": ["react", "@aikidosec/safe-chain"]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Custom Registries
|
||||
|
||||
Configure Safe Chain to scan packages from custom or private registries.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue