Skip to content
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

Setup release artifact attesting with actions/attest-build-provenance #252

Merged
merged 1 commit into from
Jun 2, 2024

Conversation

ericcornelissen
Copy link
Owner

Relates to #160, #210

Summary

Update the "Publish / GitHub Release" job to attest to release artifacts using actions/attest-build-provenance. Under the hood, this also uses Cosign (https://docs.sigstore.dev/signing/quickstart/) with keyless signing based on the workflow's OIDC token.

The attestation functionality is recent (see this blog post from May 2, 2024) and still in beta. I haven't tested this anywhere else, so we'll find out whether and how this works with the next release of this project.

@ericcornelissen ericcornelissen added ci/cd Relates to ci/cd meta Relates to the project or repository itself dependencies Changes to the project's dependencies labels May 23, 2024
Update the "Publish / GitHub Release" job to attest to release artifacts
using `actions/attest-build-provenance`. Under the hood, this uses
Cosign (<https://docs.sigstore.dev/signing/quickstart/>). In particular,
this uses keyless signing based on the OIDC token available in the job.
That way, the published release artifacts are linked to the workflow
that created it.

The version of Cosign used is not configurable with the tooling used
(`actions/attest-build-provenance`), which is a bit unfortunate given
that we have Cosign pinned in the "Publish / Docker Hub" job.

Signed-off-by: Eric Cornelissen <ericornelissen@gmail.com>
@ericcornelissen ericcornelissen merged commit 5ddc7de into main Jun 2, 2024
16 checks passed
@ericcornelissen ericcornelissen deleted the 160-attest-release-artifacts branch June 2, 2024 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/cd Relates to ci/cd dependencies Changes to the project's dependencies meta Relates to the project or repository itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant