PIP - Private Packages
For Aikido to update dependencies that include private packages, it needs access to your private packages so it can generate accurate requirement file updates. You can provide private git repository configuration in Aikido for this.
Private PyPI registry
You can configure Aikido to authenticate with your private PyPI registry when updating the dependencies by following the steps below:
Go to your account's settings page for the autofixer in Aikido, here.
Click on "Connect Registry", the private registry modal will now be shown

Select "PyPI" and provide the index URL to the PyPI registry including the username and password in the following format:

Click "Connect Registry" to save the configuration.
If the private registry is hosted on GitHub, GitLab, BitBucket or Azure DevOps, consult the sections below.
Private Git repository
Same SCM organization
If the private Git repository for the pip is in the same organization as the code being autofixed, make sure your AutoFix access token has access to the private git repository.
Different SCM organization
You can configure Aikido to authenticate with your private repositories when updating the dependencies by following the steps below:
Go to your account's settings page for the autofixer in Aikido, here.
Click on "Connect Registry", the configuration modal will now be shown

Select "Set Environment Variables"

In the example above, we show a possible setup for a private GitHub repository. The environment variable key is
PIP_GITHUB__COM, and the value is a GitHub access token with repository access.
GitHub
PIP_GITHUB__COM
your-access-token
GitLab
PIP_GITLAB__COM
your-access-token
Bitbucket
PIP_BITBUCKET__ORG
your-access-token
Azure DevOps
PIP_DEV__AZURE__COM
your-access-token
Click "Connect Registry" to save the configuration.
Last updated
Was this helpful?