Skip to content

Commit 46534fc

Browse files
committed
Verify sbom attachment in images
Signed-off-by: Prabhu Subramanian <[email protected]>
1 parent 881a2c3 commit 46534fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/image-build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ jobs:
9999
node bin/verify.js -i sbom-oci-base-image.cdx.json --public-key contrib/bom-signer/public.key
100100
oras attach --artifact-type sbom/cyclonedx ${{ fromJSON(steps.base-metadata.outputs.json).tags[0] }} ./sbom-oci-base-image.cdx.json:application/json
101101
oras discover --format tree ${{ fromJSON(steps.base-metadata.outputs.json).tags[0] }}
102+
node bin/verify.js -i ${{ fromJSON(steps.base-metadata.outputs.json).tags[0] }} --public-key contrib/bom-signer/public.key
102103
continue-on-error: true
103104
if: github.ref == 'refs/heads/master'
104105
env:
@@ -113,6 +114,7 @@ jobs:
113114
node bin/verify.js -i sbom-oci-image.cdx.json --public-key contrib/bom-signer/public.key
114115
oras attach --artifact-type sbom/cyclonedx ${{ fromJSON(steps.cdxgen-metadata.outputs.json).tags[0] }} ./sbom-oci-image.cdx.json:application/json
115116
oras discover --format tree ${{ fromJSON(steps.cdxgen-metadata.outputs.json).tags[0] }}
117+
node bin/verify.js -i ${{ fromJSON(steps.cdxgen-metadata.outputs.json).tags[0] }} --public-key contrib/bom-signer/public.key
116118
continue-on-error: true
117119
if: ${{ startsWith(github.ref, 'refs/tags/') && ! fromJSON(inputs.image).cdxgen-image.skip-tags }}
118120
env:

0 commit comments

Comments
 (0)