File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -109,12 +109,14 @@ jobs:
109109 for entry in $images; do
110110 # exclude latest tag
111111 if [[ $entry != *latest ]]; then
112- syft -o cyclonedx-json=/tmp/sbom.cyclonedx.json $entry
112+ material_name="$(echo $entry | sed 's#.*/##')"
113+
114+ syft -o cyclonedx-json=/tmp/sbom-$material_name.cyclonedx.json $entry
113115 chainloop attestation add --value $entry --kind CONTAINER_IMAGE --attestation-id ${{ env.ATTESTATION_ID }}
114- chainloop attestation add --value /tmp/sbom.cyclonedx.json --attestation-id ${{ env.ATTESTATION_ID }}
116+ chainloop attestation add --value /tmp/sbom-$material_name .cyclonedx.json --kind SBOM_CYCLONEDX_JSON --attestation-id ${{ env.ATTESTATION_ID }}
115117
116118 # Upload the SBOM to the release
117- # gh release upload ${{ github.ref_name }} /tmp/sbom-$material_name.cyclonedx.json --clobber
119+ gh release upload ${{ github.ref_name }} /tmp/sbom-$material_name.cyclonedx.json --clobber
118120 fi
119121 done
120122
You can’t perform that action at this time.
0 commit comments