File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -103,10 +103,13 @@ jobs:
103103 # goreleaser output resides in dist/artifacts.json
104104 # Attest all built containers and manifests
105105 images=$(cat dist/artifacts.json | jq -r '.[] | select(.type=="Docker Image" or .type=="Docker Manifest") | .path')
106- for entry in $images; do
107- syft -o cyclonedx-json=/tmp/sbom.cyclonedx.json $entry
108- chainloop attestation add --value $entry --kind CONTAINER_IMAGE --attestation-id ${{ env.ATTESTATION_ID }}
109- chainloop attestation add --value /tmp/sbom.cyclonedx.json --attestation-id ${{ env.ATTESTATION_ID }}
106+ for entry in $images; do
107+ # exclude latest tag
108+ if [[ $entry != *latest ]]; then
109+ syft -o cyclonedx-json=/tmp/sbom.cyclonedx.json $entry
110+ chainloop attestation add --value $entry --kind CONTAINER_IMAGE --attestation-id ${{ env.ATTESTATION_ID }}
111+ chainloop attestation add --value /tmp/sbom.cyclonedx.json --attestation-id ${{ env.ATTESTATION_ID }}
112+ fi
110113 done
111114
112115 - name : Bump Chart and Dagger Version
You can’t perform that action at this time.
0 commit comments