-
-
Notifications
You must be signed in to change notification settings - Fork 420
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
PyPI Trusted Publisher Support #1868
Comments
Fixes #1868 Signed-off-by: Frost Ming <me@frostming.com>
I've just tried to use this feature in github action and failed. |
@e10v Did you see the output: Please follow these steps to set up publishers |
No I didn't see this message. But I didn't set up "permissions: id-token: write". I will try with next release. Thank you for quick replay and sorry for bothering 🙏 |
@frostming I've just tried again. And now I'm getting the following error:
|
pdm/src/pdm/cli/commands/publish/repository.py Lines 23 to 40 in b5db072
should move to be the first in |
Related #1868 Signed-off-by: Frost Ming <me@frostming.com>
@e10v Try the head version: - uses: pdm-project/setup-pdm@v3
with:
version: 'head' |
https://github.com/drunkwcodes/bb7/actions/runs/10659567911/job/29542289097#step:4:26 I failed to get PyPI token via GitHub Actions OIDC, please help. |
Make sure the publisher is configured correctly on PyPI: |
you haven't set environment name in your action workflow so you should leave that empty |
Thanks a lot! |
PyPI announced the Trusted Publishers feature some days ago. Would be nice to see in
pdm publish
.I already saw maturin support this in this PR.
For technical reference, PyPI Docs basically has all the details.
The text was updated successfully, but these errors were encountered: