Skip to content

Commit 1301162

Browse files
alibeklfcfacebook-github-bot
authored andcommitted
Disable attestations for prod PyPI publish
Summary: Disables Sigstore attestations (`attestations: false`) in the prod PyPI publish step. The `pypa/gh-action-pypi-publish` action generates attestation certificates that carry the top-level workflow (`build.yml`) as the Build Config URI, but PyPI verifies attestations against the trusted publisher which is configured as `build-pip.yml` (the reusable workflow where the publish job is defined). This mismatch causes a `400 Invalid attestations` rejection when `build.yml` calls `build-pip.yml` via `workflow_call`. TestPyPI is unaffected because `workflow_dispatch` triggers `build-pip.yml` directly, so the certificate and publisher both say `build-pip.yml`. This is a known limitation of `pypa/gh-action-pypi-publish` with reusable workflows. Attestations can be re-enabled once PyPI supports matching against `workflow_ref` in addition to `job_workflow_ref` for attestation verification, or once the publish job is moved out of the reusable workflow. Differential Revision: D106110673
1 parent d680c5f commit 1301162

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/build-pip.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # release/v1
6060
with:
6161
verbose: true
62+
attestations: false
6263

6364
publish-testpypi:
6465
name: Publish to TestPyPI

0 commit comments

Comments
 (0)