How to configure PDM repositories in CI/CD when no password is required? #1790
-
Some private repository services like GemFury only provide username upload tokens no password, like this: Working with such services is hard, because you cannot/are not supposed to set an empty value with The hack I found is to manually configure pdm settings for the repo like this: [pypi.private]
url = "<SERVICE_URL>"
username = "<SERVICE_TOKEN>"
password = "" However this does not work in CI/CD, e.g. with GitHub Actions you cannot set an empty secret. I tried setting Is there a temporary workaround for this? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Encode it in the URL:
|
Beta Was this translation helpful? Give feedback.
-
The GemFury team answered you can set as username the token owner and use the token as password:
So for pdm config repository.private.url pypi.fury.io/USERNAME
pdm config repository.private.username TOKEN_OWNER
pdm config repository.private.password TOKEN |
Beta Was this translation helpful? Give feedback.
The GemFury team answered you can set as username the token owner and use the token as password:
So for
pdm
: