-
Notifications
You must be signed in to change notification settings - Fork 21
[pyos meta repo] Use GitHub Artifact Attestations #165
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
Comments
Either that, or the official action. Keep the old job for making releases, perhaps reduce its privileges and add a new job with new privileges. I actually filed an issue to update this in PyPUG yesterday, too. The upload attestations will be built into the publish action once that work is completed, by the way. |
By official action do you mean You're saying it might get folded into |
As of https://github.com/pypa/gh-action-pypi-publish/releases/tag/v1.11.0, sigstore attestations enabled by default. pypa/gh-action-pypi-publish#288 is for adding them to GitHub Attestations as well. |
Oh, I missed this question. I think I meant
Kind of. I want to try uploading the same attestations that are sent to PyPI, to GitHub as well. However, the difference with What I dislike about Here's an example of doing this + producing SLSA artifacts as well: https://github.com/ansible/awx-plugins/blob/678ea69/.github/workflows/ci-cd.yml#L925-L1115. |
Oh, and yes, |
I just submitted and merged a PR that uses the pypa workflow to publish and removes the sigstore signing step. https://github.com/pyOpenSci/pyosMeta/blob/main/.github/workflows/publish-pypi.yml We were getting a duplication error where sigstore said the files were already there. So, I read that the PYPA action already signs things and I we don't need the sigstore action if we use the pypa action. I am going to try a release now but in theory this should work and we can then close this issue!! (i think). signing is NOT my area of expertise so please correct my logic if this is not correct. |
GitHub now has full support for Artifact Attestations: https://github.blog/changelog/2024-06-25-artifact-attestations-is-generally-available/
The feature supersedes our usage of SigStore (#156), since it uses SigStore under the hood and has built-in support in the GitHub API/cli, e.g.
gh attestation verify PATH/TO/ARTIFACT -o myorganization
.I am happy to make this change if there is agreement.
cc @webknjaz
The text was updated successfully, but these errors were encountered: