-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change attaches SBOMs to the `oci.SignedImage`s we build up, and these are published thanks to the previous commit in this series. I have added validation that for each of the examples we have that we scan download its SBOM with cosign. Fixes: #145
- Loading branch information
Showing
4 changed files
with
55 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,8 @@ jobs: | |
- uses: imjasonh/setup-ko@2c3450ca27f6e6f2b02e72a40f2163c281a1f675 # v0.4 | ||
with: | ||
version: v0.11.1 | ||
- uses: imjasonh/[email protected] | ||
- uses: sigstore/cosign-installer@main | ||
|
||
- uses: chainguard-dev/actions/setup-kind@main | ||
with: | ||
|
@@ -56,9 +58,16 @@ jobs: | |
- name: Build examples | ||
run: | | ||
for cfg in $(find ./examples/ -name '*.yaml'); do | ||
echo "::group:: $cfg" | ||
DIGEST=$(mink run task apko -- --path=$cfg) | ||
echo $cfg produced: $DIGEST | ||
# Each of the per-architecture images produces should have an SBOM attached to it. | ||
for d in $(crane manifest "${DIGEST}" | jq -r '.manifests[].digest'); do | ||
cosign download sbom ${KO_DOCKER_REPO}/image@${d} | ||
done | ||
echo ::endgroup:: | ||
done | ||
- uses: chainguard-dev/actions/kind-diag@main | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters