From e9578e46aefbe58bf77de1f154fbb846fcbdacec Mon Sep 17 00:00:00 2001 From: Jan Koscielniak Date: Wed, 4 Dec 2024 15:04:18 +0100 Subject: [PATCH] oci-copy produced SBOM has a better name Changes name to be `registry/repository@digest`of the pushed image. JIRA: ISV-5323 Signed-off-by: Jan Koscielniak --- task/oci-copy-oci-ta/0.1/oci-copy-oci-ta.yaml | 6 ++++++ task/oci-copy/0.1/oci-copy.yaml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/task/oci-copy-oci-ta/0.1/oci-copy-oci-ta.yaml b/task/oci-copy-oci-ta/0.1/oci-copy-oci-ta.yaml index 63b889abeb..b312fc2914 100644 --- a/task/oci-copy-oci-ta/0.1/oci-copy-oci-ta.yaml +++ b/task/oci-copy-oci-ta/0.1/oci-copy-oci-ta.yaml @@ -305,6 +305,12 @@ spec: "specVersion": "1.5", "version": 1, "components": [] + "metadata": { + "component": { + "type": "file", + "name": "${IMAGE%:*}@$(cat "$(results.IMAGE_DIGEST.path)")" + } + } } EOL diff --git a/task/oci-copy/0.1/oci-copy.yaml b/task/oci-copy/0.1/oci-copy.yaml index c40994fc78..36581080c5 100644 --- a/task/oci-copy/0.1/oci-copy.yaml +++ b/task/oci-copy/0.1/oci-copy.yaml @@ -284,6 +284,12 @@ spec: "specVersion": "1.5", "version": 1, "components": [] + "metadata": { + "component": { + "type": "file", + "name": "${IMAGE%:*}@$(cat "$(results.IMAGE_DIGEST.path)")" + } + } } EOL