Merge pull request #232 from galargh/pip-custom-registries

feat: allow python custom registries configuration
This commit is contained in:
Sander Declerck 2026-01-05 14:01:51 +01:00 committed by GitHub
commit 8bfbe1c77d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 579 additions and 284 deletions

View file

@ -201,9 +201,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
@ -213,6 +217,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`):
@ -221,6 +226,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"]
}
}
```