Skip to content

Commit

Permalink
Removing the command able to copy the sbom-purl.json as we don't gene…
Browse files Browse the repository at this point in the history
…rate this file anymore

Signed-off-by: cmoulliard <[email protected]>
  • Loading branch information
cmoulliard committed Dec 20, 2024
1 parent fd00f5a commit 048ba8c
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,6 @@ spec:
export IMAGE
fi
echo "Merging contents of sbom-source.json and sbom-image.json into sbom-cyclonedx.json"
python3 /scripts/merge_syft_sboms.py
Expand Down Expand Up @@ -380,16 +379,12 @@ spec:
update-ca-trust
fi
echo "Pull the image from the OCI storage."
buildah --storage-driver "$STORAGE_DRIVER" pull "$IMAGE"
echo "Copy within the container of the image the sbom files"
container=$(buildah --storage-driver "$STORAGE_DRIVER" from --pull-never "$IMAGE")
buildah --storage-driver "$STORAGE_DRIVER" copy "$container" sbom-cyclonedx.json sbom-purl.json /root/buildinfo/content_manifests/
BUILDAH_ARGS=()
if [ "${SQUASH}" == "true" ]; then
Expand All @@ -398,7 +393,6 @@ spec:
buildah --storage-driver "$STORAGE_DRIVER" commit "${BUILDAH_ARGS[@]}" "$container" "$IMAGE"
echo "Pushing to ${IMAGE%:*}:${TASKRUN_NAME}"
retries=5
Expand All @@ -412,7 +406,6 @@ spec:
exit 1
fi
echo "Pushing to ${IMAGE}"
if ! buildah push \
Expand All @@ -425,7 +418,6 @@ spec:
exit 1
fi
echo "Save the different results"
tee "$(results.IMAGE_DIGEST.path)" < "/var/workdir/image-digest"
Expand Down

0 comments on commit 048ba8c

Please sign in to comment.