You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I publish my Python packages via GitHub Actions (GHA) with a Trusted Published setup, which has been working successfully for some time. However, I recently tried publishing since the PyPI attestation functionality was rolled out, and now I am getting the following error from production PyPI (Test PyPI seems to publish fine):
Checking dist/imessage_conversation_analyzer-2.5.0rc1-py3-none-any.whl: PASSED
Checking dist/imessage_conversation_analyzer-2.5.0rc1.tar.gz: PASSED
Notice: Generating and uploading digital attestations
Fulcio client using URL: https://fulcio.sigstore.dev/
TUF metadata: /root/.local/share/sigstore-python/tuf/https%3A%2F%2Ftuf-repo-cdn.sigstore.dev
TUF targets cache: /root/.cache/sigstore-python/tuf/https%3A%2F%2Ftuf-repo-cdn.sigstore.dev
Found and verified trusted root
Generating ephemeral keys...
Requesting ephemeral certificate...
Retrieving signed certificate...
Found <Name(O=sigstore.dev,CN=sigstore-intermediate)> as issuer, verifying if it is a ca
attempting to verify SCT with key ID [not sure if the key represents a secret, so redacting]
Successfully verified SCT...
Error: Attestation generation failure: /github/workspace/dist/imessage_conversation_analyzer-2.5.0rc1.tar.gz already has a publish attestation: /github/workspace/dist/imessage_conversation_analyzer-2.5.0rc1.tar.gz.publish.attestation
My Trusted Publisher setup is the same as it has been—which has been working successfully before this—so I know it is correct.
I have done much searching on Google and through this repository, but cannot find a clear reason for why this is happening or what I might be doing incorrectly. As you might imagine, passing attestations: false to the pypa/gh-action-pypi-publish action publishes successfully, but I'm assuming this is a terrible workaround because it relaxes the verification requirements that attestations are meant to offer.
Is this a bug? Or what can I do to fix this? Thank you in advance for any help you can provide.
@webknjaz If it's outside the scope of what you can do for X technical reasons (such as troubleshooting challenges), that's all fine. I suppose my issue comes down to a lack of understanding about how attestations are supposed to work. And while the Non-Goals section you linked is clear, I still have the following questions:
I publish my Python packages via GitHub Actions (GHA) with a Trusted Published setup, which has been working successfully for some time. However, I recently tried publishing since the PyPI attestation functionality was rolled out, and now I am getting the following error from production PyPI (Test PyPI seems to publish fine):
I believe my GHA job for publishing is correct:
(link to workflow source code)
My Trusted Publisher setup is the same as it has been—which has been working successfully before this—so I know it is correct.
I have done much searching on Google and through this repository, but cannot find a clear reason for why this is happening or what I might be doing incorrectly. As you might imagine, passing
attestations: false
to thepypa/gh-action-pypi-publish
action publishes successfully, but I'm assuming this is a terrible workaround because it relaxes the verification requirements that attestations are meant to offer.Is this a bug? Or what can I do to fix this? Thank you in advance for any help you can provide.
Link to package on PyPI
The text was updated successfully, but these errors were encountered: