From 909b05c083ec39652876e9b4a3bb6ca20e65e0b3 Mon Sep 17 00:00:00 2001 From: John Bell Date: Tue, 10 Dec 2024 11:40:52 -0500 Subject: [PATCH] Set SBOM name for rpm-ostree generated images to `registry/repository@digest`of the pushed image. (added quotes to prevent word splitting, per shellcheck warning) JIRA: ISV-5322 Signed-off-by: John Bell --- task/rpm-ostree/0.2/rpm-ostree.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/task/rpm-ostree/0.2/rpm-ostree.yaml b/task/rpm-ostree/0.2/rpm-ostree.yaml index e34ccb0fe2..0900c1f782 100644 --- a/task/rpm-ostree/0.2/rpm-ostree.yaml +++ b/task/rpm-ostree/0.2/rpm-ostree.yaml @@ -217,7 +217,7 @@ spec: # (need to set the workdir, see https://github.com/anchore/syft/issues/2465) workingDir: $(workspaces.source.path)/source script: | - syft oci-dir:/var/lib/containers/rhtap-final-image --output cyclonedx-json=$(workspaces.source.path)/sbom-cyclonedx.json --source-name "${IMAGE%:*}@$(cat "$(results.IMAGE_DIGEST.path)")" + syft oci-dir:/var/lib/containers/rhtap-final-image --output cyclonedx-json="$(workspaces.source.path)/sbom-cyclonedx.json" --source-name "${IMAGE%:*}@$(cat "$(results.IMAGE_DIGEST.path)")" volumeMounts: - mountPath: /var/lib/containers name: varlibcontainers