Allow trailing * for wildcard matching

This commit is contained in:
Sander Declerck 2026-01-14 17:51:41 +01:00
parent 6815b62019
commit 884cb6e026
No known key found for this signature in database
3 changed files with 99 additions and 4 deletions

View file

@ -214,16 +214,16 @@ 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):
Exclude trusted packages from minimum age filtering via environment variable or config file (both are merged). Supports wildcard patterns with trailing `*`:
```shell
export SAFE_CHAIN_NPM_MINIMUM_PACKAGE_AGE_EXCLUSIONS="react,@aikidosec/safe-chain"
export SAFE_CHAIN_NPM_MINIMUM_PACKAGE_AGE_EXCLUSIONS="@aikidosec/*,react-*,lodash"
```
```json
{
"npm": {
"minimumPackageAgeExclusions": ["react", "@aikidosec/safe-chain"]
"minimumPackageAgeExclusions": ["@aikidosec/*", "react-*", "lodash"]
}
}
```