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

Add SLSA generator #35

Merged
merged 7 commits into from
Mar 26, 2024
Merged

Add SLSA generator #35

merged 7 commits into from
Mar 26, 2024

Conversation

norbjd
Copy link
Owner

@norbjd norbjd commented Mar 26, 2024

Add SLSA generator to generate an attestation (.att manifest pushed in ghcr, matching the image digest):

image

To verify image provenance:

go install github.com/slsa-framework/slsa-verifier/v2/cli/slsa-verifier@v2.4.1
go install github.com/google/go-containerregistry/cmd/crane@v0.19.1

IMAGE=ghcr.io/norbjd/k8s-pod-cpu-booster/webhook:202403261225-52a8efb
IMAGE="${IMAGE}@"$(crane digest "${IMAGE}")

slsa-verifier verify-image "$IMAGE" --source-uri github.com/norbjd/k8s-pod-cpu-booster

Result:

Verified build using builder "https://github.com/slsa-framework/slsa-github-generator/.github/workflows/generator_container_slsa3.yml@refs/tags/v1.10.0" at commit 52a8efb0b53332260ac22c48ae8188fbb1e63219
PASSED: Verified SLSA provenance

@norbjd norbjd self-assigned this Mar 26, 2024
@norbjd norbjd merged commit 2a129a6 into main Mar 26, 2024
6 checks passed
@norbjd norbjd deleted the slsa branch March 26, 2024 12:52
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