From 53299cbff46451425806187129b86bb0f8b4af35 Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Mon, 1 Dec 2025 13:15:20 -0500 Subject: [PATCH] Enable PEP 740 attestations when publishing to PyPI (#21735) --- .github/workflows/publish-pypi.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml index a66345429a..e2d1fe3587 100644 --- a/.github/workflows/publish-pypi.yml +++ b/.github/workflows/publish-pypi.yml @@ -18,8 +18,7 @@ jobs: environment: name: release permissions: - # For PyPI's trusted publishing. - id-token: write + id-token: write # For PyPI's trusted publishing + PEP 740 attestations steps: - name: "Install uv" uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 # v7.1.4 @@ -28,5 +27,8 @@ jobs: pattern: wheels-* path: wheels merge-multiple: true + - uses: astral-sh/attest-action@2c727738cea36d6c97dd85eb133ea0e0e8fe754b # v0.0.4 + with: + paths: wheels/* - name: Publish to PyPi run: uv publish -v wheels/*