feat: allow python custom registries configuration

This commit is contained in:
galargh 2025-12-10 13:27:18 +01:00
parent 9444c7b4f6
commit 833fa285aa
5 changed files with 259 additions and 3 deletions

View file

@ -5,3 +5,11 @@
export function getMinimumPackageAgeHours() {
return process.env.SAFE_CHAIN_MINIMUM_PACKAGE_AGE_HOURS;
}
/**
* Gets the custom pip registries from environment variable
* @returns {string | undefined}
*/
export function getPipCustomRegistries() {
return process.env.SAFE_CHAIN_PIP_CUSTOM_REGISTRIES;
}