-
Notifications
You must be signed in to change notification settings - Fork 16
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
feat: Add Artifact attestation for CI builds #1240
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before merging I'd like to see and verify an attested build, is it possible?
https://github.com/stacks-network/sbtc/attestations/4526596
sure here https://github.com/stacks-network/sbtc/attestations/4526596 |
Verified with the following: gh attestation verify oci://index.docker.io/blockstack/sbtc:signer-test-attestation -R stacks-network/sbtc
Loaded digest sha256:3f7fd67e2d8ce754ce5890716d94da9fb09327f06ac17acdbc90e5735d0adb09 for oci://index.docker.io/blockstack/sbtc:signer-test-attestation
Loaded 1 attestation from GitHub API
The following policy criteria will be enforced:
- OIDC Issuer must match:................... https://token.actions.githubusercontent.com
- Source Repository Owner URI must match:... https://github.com/stacks-network
- Source Repository URI must match:......... https://github.com/stacks-network/sbtc
- Predicate type must match:................ https://slsa.dev/provenance/v1
- Subject Alternative Name must match regex: (?i)^https://github.com/stacks-network/sbtc/
✓ Verification succeeded!
sha256:3f7fd67e2d8ce754ce5890716d94da9fb09327f06ac17acdbc90e5735d0adb09 was attested by:
REPO PREDICATE_TYPE WORKFLOW
stacks-network/sbtc https://slsa.dev/provenance/v1 .github/workflows/image-build.yaml@refs/tags/test-attestation |
Description
Add Artifact attestation for CI
Closes: #1233
Ref: https://docs.github.com/en/actions/security-for-github-actions/using-artifact-attestations/using-artifact-attestations-to-establish-provenance-for-builds#generating-artifact-attestations-for-your-builds
Changes
Testing Information
https://docs.github.com/en/actions/security-for-github-actions/using-artifact-attestations/using-artifact-attestations-to-establish-provenance-for-builds#generating-artifact-attestations-for-your-builds
Checklist: