-
Notifications
You must be signed in to change notification settings - Fork 1k
Trusted Publishing attestations missing #18128
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
Comments
In https://github.com/letmaik/pyvirtualcam/actions/runs/14983471840/job/42098613667 I see your workflow generating a publish attestation for a file named
but it's not in the list of uploaded files at the end of that workflow run:
...nor does it appear at https://pypi.org/project/pyvirtualcam/0.13.0/#files. Instead, I see So, PyPI is behaving as expected, but something between the attestation generation step and the upload step is renaming the wheel files with compressed tag sets. @webknjaz @woodruffw does that ring any bells? |
Actually, perhaps PyPI should behave slightly better here and reject attestations for which the subject name doesn't match the corresponding filename? |
I think this is product of some last-second normalization within That happens here: In practice this is strictly superfluous, since PEP 740 says that attestation verification is done by comparing the subject (i.e. dist filename) by parsing, rather than assuming string equality. So, we could probably remove this entirely 🙂 TL:DR: This is probably happening in |
Per https://peps.python.org/pep-0425/, these tags should be sorted, so I think the 'right' filename is |
PyPI should probably start rejecting wheels where the tag sets are not ordered as well: #18129 But we should also determine what's creating the non-compliant wheel filenames in the first place. |
Based on https://github.com/letmaik/pyvirtualcam/actions/runs/14983471840/job/42092719292#step:4:357, looks like
I filed pypa/auditwheel#583 as a result. Closing this in favor of pypa/auditwheel#583, #18129 and trailofbits/pypi-attestations#123. |
Describe the bug
I updated my packages to use trusted publishing and found that some
.whl
files return 200, some 404 when retrieving provenance.PR: https://github.com/letmaik/pyvirtualcam/pull/132/files
200: https://pypi.org/integrity/pyvirtualcam/0.13.0/pyvirtualcam-0.13.0-cp310-cp310-macosx_11_0_arm64.whl/provenance
404: https://pypi.org/integrity/pyvirtualcam/0.13.0/pyvirtualcam-0.13.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl/provenance
The job that generates and uploads the provenance didn't show any errors:
https://github.com/letmaik/pyvirtualcam/actions/runs/14983471840/job/42098613667
Expected behavior
All
.whl
files should have attestations uploaded to PyPI.To Reproduce
Not sure. See linked PR.
My Platform
GitHub Actions
Additional context
I notice this behavior in all my three packages that I upgraded:
pyvirtualcam
,rawpy
,lensfunpy
.The text was updated successfully, but these errors were encountered: