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

chore: create attest job for the dev container prebuilt image #2972

Merged
merged 2 commits into from
Jan 22, 2025

Conversation

tschaffter
Copy link
Member

@tschaffter tschaffter commented Jan 22, 2025

Description

The workflow previously failed to generate and publish the build attestation because the permission id-token: write was missing.

UPDATE:

To verify the attestation of the Docker image using the GitHub CLI, you can use the following command:

$ gh attestation verify --owner Sage-Bionetworks oci://ghcr.io/sage-bionetworks/sage-monorepo-devcontainer:sha-5cd10f9d963
e69f330b283166824ccd2b77bac8d
Loaded digest sha256:84408f15bb8e1b617285329a140b0ddebaf44f563b2d18acddf845484ccd42ce for oci://ghcr.io/sage-bionetworks/sage-monorepo-devcontainer:sha-5cd10f9d963e69f330b283166824ccd2b77bac8d
Loaded 1 attestation from GitHub API
✓ Verification succeeded!

sha256:84408f15bb8e1b617285329a140b0ddebaf44f563b2d18acddf845484ccd42ce was attested by:
REPO                            PREDICATE_TYPE                  WORKFLOW                                                               
Sage-Bionetworks/sage-monorepo  https://slsa.dev/provenance/v1  .github/workflows/build-and-push-devcontainer-image.yml@refs/heads/main

Note: The image does not need to be pulled first.

@tschaffter tschaffter marked this pull request as ready for review January 22, 2025 17:33
@tschaffter tschaffter merged commit 5cd10f9 into Sage-Bionetworks:main Jan 22, 2025
16 of 17 checks passed
@tschaffter tschaffter deleted the monorepo/fix-attestation branch January 22, 2025 17:43
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.

1 participant