Skip to content

ci(release): upload PEP 740 attestations to PyPI - #158

Merged
dengqiaoyu merged 1 commit into
apple:mainfrom
dengqiaoyu:feat/pypi-attestations
Oct 24, 2026
Merged

dengqiaoyu merged 1 commit into
apple:mainfrom
dengqiaoyu:feat/pypi-attestations

Conversation

@dengqiaoyu

Copy link
Copy Markdown
Contributor

Upload PEP 740 attestations with each PyPI upload, so coreai-opt and coreai-opt-nightly files show provenance instead of "No provenance".

  • release.yml and nightly.yml publish with pypa/gh-action-pypi-publish (v1.14.3, SHA-pinned), which signs each file with the workflow's OIDC identity
  • uv publish only uploads pre-generated attestations, so the publish jobs drop their setup-uv step

- Publish with `pypa/gh-action-pypi-publish` (v1.14.3, SHA-pinned) in `release.yml` and `nightly.yml`; it signs an attestation for each file with the workflow's OIDC identity, so PyPI shows provenance
- `uv publish` uploads only pre-generated attestations, so the publish jobs drop their `setup-uv` step
@dengqiaoyu

Copy link
Copy Markdown
Contributor Author

Please see the "No provenance" below in the screenshot.

24973 62840

This changes uses the correct attestations.

@dengqiaoyu
dengqiaoyu merged commit 1bddd06 into apple:main Oct 24, 2026
14 checks passed
@dengqiaoyu
dengqiaoyu deleted the feat/pypi-attestations branch October 24, 2026 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants