-
Notifications
You must be signed in to change notification settings - Fork 4
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
Trusted publisher broken or misconfigured #29
Comments
Looks correct. The only thing I can assume is moving the repository after the trust link creation (which I suppose you didn't do) or malformed values during copying or typing in. Like having zero-width whitespaces, trailing/leading spaces or characters that look like ASCII but are from other unicode ranges @woodruffw — would it be possible to attach the data PyPI received to error messages it returns? |
Thanks for the ping 🙂 The only other thing that stands out is that you're using an
That would be the OIDC JWT, so I'm not sure that's advisable -- attaching it would mean potentially leaking a still valid short-lived token from GitHub or another provider. CC @di as well -- I doubt it, but maybe related to the temporary form regression last night? |
I'm using this syntax everywhere and it works well for me. |
But it contains some non-secret payload, right? It'd be nice to expose what's safe... |
@henryiii if this was a temporary regression on PyPI, this can be verified by restarting the job to see if it succeeds. |
In principle yes, although the claims can also contain sensitive values (the JWT as a whole is meant to be treated as a secret; nothing prevents GitHub from adding secret materials to the claim set). We could probably carve out the specific values that PyPI ends up using, but IMO that would be better suited to the client side anyways -- doing it on PyPI necessarily means parsing the JWT before verifying its signature, and that quickly leads to doom 🙂
As part of this, it might be worth trying to delete and re-add the trusted publisher's configuration. I doubt that this was a form issue, but just to eliminate another variable! |
To provide some additional context, back in 20211 we transferred the project to the
@henryiii I will let you take care of this. Footnotes |
|
Deleting and filling out the form (with the same values AFAICT) did the trick! |
Thank you for confirming, and I'm very sorry for the hiccup there! The form refactor that might have caused the problem was reverted, and we'll take a closer look at it to try and root cause. |
Thanks y'all for the help. ~8hrs after observing issue it is fixed. This is 👌💯 |
When was the form originally submitted prior to publishing failing? |
It was added around the time of this comment. See #28 (comment) |
Ah, yeah, you probably fell into a narrow window of an outage here, sorry for the trouble! |
No worry and glad we were able to understand the "root" cause 👌 Thanks for taking the time to follow-up 🙏 |
Overall the Trusted Publisher feature has been straightforward to use and really helped streamlined the whole workflow. So thanks for working on it. |
3.27.0 was fine. :) |
I've not been able to release - see https://github.com/scikit-build/moderncmakedomain/actions/runs/5087974019 for example. I really can't see anything wrong on either end. @webknjaz, any ideas what this might mean?
The text was updated successfully, but these errors were encountered: