我想在私有 git 存储库中引用一个依赖项,该存储库通常如下所示pyproject.toml
:
[tool.poetry.dependencies]
...
my-module = { git = "https://username:password@gitlab.com/something", branch = "branch" }
我的问题是如何通过环境变量或我可以在 CICD 中使用的任何其他方式注入密码。AFAIK 诗歌不支持环境变量,所以如果你遇到同样的情况,基本上是在寻找解决方法。