Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,14 @@ jobs:
for entry in $images; do
# exclude latest tag
if [[ $entry != *latest ]]; then
syft -o cyclonedx-json=/tmp/sbom.cyclonedx.json $entry
material_name="$(echo $entry | sed 's#.*/##')"

syft -o cyclonedx-json=/tmp/sbom-$material_name.cyclonedx.json $entry
chainloop attestation add --value $entry --kind CONTAINER_IMAGE --attestation-id ${{ env.ATTESTATION_ID }}
chainloop attestation add --value /tmp/sbom.cyclonedx.json --attestation-id ${{ env.ATTESTATION_ID }}
chainloop attestation add --value /tmp/sbom-$material_name.cyclonedx.json --kind SBOM_CYCLONEDX_JSON --attestation-id ${{ env.ATTESTATION_ID }}

# Upload the SBOM to the release
# gh release upload ${{ github.ref_name }} /tmp/sbom-$material_name.cyclonedx.json --clobber
gh release upload ${{ github.ref_name }} /tmp/sbom-$material_name.cyclonedx.json --clobber
fi
done

Expand Down
Loading