Skip to content

Commit debf1ea

Browse files
authored
fix(ci): Remove material name (#1792)
Signed-off-by: Javier Rodriguez <[email protected]>
1 parent dc19d77 commit debf1ea

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/release.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,9 @@ jobs:
109109
for entry in $images; do
110110
# exclude latest tag
111111
if [[ $entry != *latest ]]; then
112-
# Extract only the image name and the architecture on the tag
113-
repo="${entry%:*}" # Remove tag
114-
repo="${repo##*/}" # Extract last segment after the last '/'
115-
material_name="${repo}-${entry##*-}" # Construct final name
116-
syft -o cyclonedx-json=/tmp/sbom-$material_name.cyclonedx.json $entry
117-
chainloop attestation add --value $entry --attestation-id ${{ env.ATTESTATION_ID }}
118-
chainloop attestation add --value /tmp/sbom-$material_name.cyclonedx.json --attestation-id ${{ env.ATTESTATION_ID }}
112+
syft -o cyclonedx-json=/tmp/sbom.cyclonedx.json $entry
113+
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 }}
119115
120116
# Upload the SBOM to the release
121117
gh release upload ${{ github.ref_name }} /tmp/sbom-$material_name.cyclonedx.json --clobber

0 commit comments

Comments
 (0)