Skip to content

Commit 765f771

Browse files
committed
Verify oci images with SBOM attachments
Signed-off-by: Prabhu Subramanian <[email protected]>
1 parent 884bc4e commit 765f771

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/image-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
oras attach --artifact-type sbom/cyclonedx ${{ fromJSON(steps.cdxgen-metadata.outputs.json).tags[0] }} ./sbom-oci-image.cdx.json:application/json
115115
oras discover --format tree ${{ fromJSON(steps.cdxgen-metadata.outputs.json).tags[0] }}
116116
continue-on-error: true
117-
if: ${{ ! fromJSON(inputs.image).cdxgen-image.skip-tags }}
117+
if: ${{ startsWith(github.ref, 'refs/tags/') && ! fromJSON(inputs.image).cdxgen-image.skip-tags }}
118118
env:
119119
SBOM_SIGN_ALGORITHM: RS512
120120
SBOM_SIGN_PRIVATE_KEY: ${{ github.workspace }}/private.key

0 commit comments

Comments
 (0)