-
-
Notifications
You must be signed in to change notification settings - Fork 521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add NETRC to the default_pass_env list #3410
Conversation
Add NETRC to the list of default_pass_env. This is used by pip when downloading package from an index needing authentication.
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI failing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changelog please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add NETRC to the list of default_pass_env.
This is used by pip when downloading package from an index needing authentication.
My usecase is a CI process needing to obtain authentication tokens and pass them to pip for it to be able to use the index. Installing the credentials in
~/.netrc
would work but isn't always possible when using temporary tokens, or running CI jobs in parallel on the same host. The other supported way is to write a temporarynetrc
file, and pointpip
to it usingNETRC
environment variable. After the CI run is done, thisnetrc
can be removed.tox -e fix
)docs/changelog
folder