Repository navigation
Commit 28d0825
authored
feat: releases ship with PEP 740 attestations (#24)
uv publish uploads attestations it is given but does not create them, so no
release in the org had provenance on PyPI, although the publish job already
holds the OIDC token Sigstore signs with.
The publish job now runs pypi-attestations sign over the built wheel and
sdist before uploading. It writes <file>.publish.attestation next to each,
and uv publish, with its default dist/* file set, sends them along. PyPI
verifies each attestation against the Trusted Publisher and rejects the
upload if one does not match, so a broken signature fails the release
instead of shipping without provenance.
Closes #131 parent 00ac431 commit 28d0825
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
153 | 160 | | |
0 commit comments