-
-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attestation generation failure: ... already has a publish attestation #319
Comments
@caleb531 could you read https://github.com/marketplace/actions/pypi-publish#Non-goals and let me know if I can make it clearer somehow? What would've helped you discover it on your own? |
@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:
Thank you for looking at this! |
hey @caleb531! The issue:
is because the The section of the docs @webknjaz linked addresses this near the end, and suggests a solution:
|
@facutuesca I see. Do you have a recommendation, then, for publishing to TestPyPI as a prerequisite to production PyPI publish? Because ideally, I want to publish to production PyPI if and only if Test PyPI publish has succeeded. Hence why I run both in succession as opposed to running TestPyPI publish in a separate workflow/job. EDIT: I think I found what I'm looking for: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/using-jobs-in-a-workflow#defining-prerequisite-jobs — closing this issue now that the problem has been identified, along with a solution. |
@caleb531 another (or complimentary) solution would be setting up required reviewers in the environment you assigned to the job (usually called P.S. The reason I was asking to check that README was mainly my attempt to identify how difficult it is for somebody reading it for the first time to find the information. I think the docs should be improved, but I don't fully understand what's the best way to do that is so far. |
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: