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

(@actions/attest) build provenance statement from OIDC claims #1693

Merged
merged 2 commits into from
Mar 28, 2024

Conversation

bdehamer
Copy link
Contributor

Updates the attestProvenance function in the @actions/attest package so that the provenance statement is populated from data read from a verified GHA OIDC token.

Previously, the provenance data was read directly from the environment. With the new approach, an OIDC token is retrieved from the GHA issuer and the provenance statement is built from the claims present in that token. This more closely mirrors the approach that is used by Sigstore certificate authority (Fulcio) when it populates the claims in the signing certificate.

@bdehamer bdehamer requested a review from a team as a code owner March 22, 2024 19:27
Signed-off-by: Brian DeHamer <bdehamer@github.com>
Signed-off-by: Brian DeHamer <bdehamer@github.com>
@bdehamer bdehamer requested a review from a team as a code owner March 22, 2024 19:44
Copy link

@ejahnGithub ejahnGithub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice work!

@bdehamer bdehamer merged commit 59e9d28 into main Mar 28, 2024
14 checks passed
@bdehamer bdehamer deleted the bdehamer/oidc-provenance branch March 28, 2024 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants