feat: allow python custom registries configuration through config file

This commit is contained in:
galargh 2025-12-22 13:49:45 +01:00
parent 39e2001d97
commit c53a7347e2
5 changed files with 325 additions and 283 deletions

View file

@ -188,9 +188,13 @@ You can set the minimum package age through multiple sources (in order of priori
}
```
## Custom NPM Registries
## Custom Registries
Configure Safe Chain to scan packages from custom or private npm registries.
Configure Safe Chain to scan packages from custom or private registries.
Supported ecosystems:
- Node.js
- Python
### Configuration Options
@ -200,6 +204,7 @@ You can set custom registries through environment variable or config file. Both
```shell
export SAFE_CHAIN_NPM_CUSTOM_REGISTRIES="npm.company.com,registry.internal.net"
export SAFE_CHAIN_PIP_CUSTOM_REGISTRIES="pip.company.com,registry.internal.net"
```
2. **Config File** (`~/.aikido/config.json`):
@ -208,6 +213,9 @@ You can set custom registries through environment variable or config file. Both
{
"npm": {
"customRegistries": ["npm.company.com", "registry.internal.net"]
},
"pip": {
"customRegistries": ["pip.company.com", "registry.internal.net"]
}
}
```