-
- uses: pypa/gh-action-pypi-publish@release/v2
with:
token: ${{ secrets.PYPI_UPLOAD_TOKEN }} Just an idea. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
It already works like this by default. The user was never mandatory and defaults to Also, we'll support short-lived tokens for (Test)PyPI via OIDC soon, which would allow having no inputs on the user side in most cases. |
Beta Was this translation helpful? Give feedback.
It already works like this by default. The user was never mandatory and defaults to
__token__
which is why I've updated the README some time ago to showcase a password-only case. The input is still calledpassword
, though. But it does accept tokens. I think that adding an extra input for the token would unnecessarily complicate the maintenance.Removing the
user
input is not an option since there are custom indexes that need it.Also, we'll support short-lived tokens for (Test)PyPI via OIDC soon, which would allow having no inputs on the user side in most cases.