PDM lock file update fails due to missing authentication #27454
-
How are you running Renovate?Self-hosted If you're self-hosting Renovate, tell us what version of Renovate you run.37.189.2 If you're self-hosting Renovate, select which platform you are using.GitLab self-hosted What is your question?I use PDM for Python package management and Google Artifact Registry (GAR) as a private registry and PyPi mirror. I managed to get Renovate to create MRs by setting the relevant Unfortunately, the separate CI job that runs The only workaround I see, is to create a custom Renovate image that includes all relevant Python/PDM versions and Are there any other solutions that do not require a custom Renovate image? Logs (if relevant)Logs
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Are you sure that keyring is the only way to provide credentials? e.g. this looks like an alternative: https://github.com/pdm-project/pdm/blob/ddd26878f2a8c32a63ede330d44a45934cbf5742/docs/docs/usage/config.md?plain=1#L210-L211 |
Beta Was this translation helpful? Give feedback.
-
Hi @rarkins, thanks for the swift response! Keyring is indeed not the only way to set credentials but I failed to make it work using other methods. What I thought could work:
Another option would be to configure credentials in the PDM config file, but I am not sure where to store this? Ideally, I would want to configure this globally for Renovate and not in each repo where I use PDM. Moreover, the above only holds for a single index that is called |
Beta Was this translation helpful? Give feedback.
-
Thanks, that worked! For reference, I used
For the case where |
Beta Was this translation helpful? Give feedback.
You can try setting exposeAllEnv in your bot/admin config (not renovate.json in repo) to true so that all env is passed to child processes.