Skip to content

Commit

Permalink
Set SBOM name for rpm-ostree generated images to `registry/repository…
Browse files Browse the repository at this point in the history
…@digest`of the pushed image.

(added quotes to prevent word splitting, per shellcheck	warning)

JIRA: ISV-5322

Signed-off-by: John Bell <[email protected]>
  • Loading branch information
johnbe11 authored and cgwalters committed Dec 11, 2024
1 parent 18ec3cd commit 909b05c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion task/rpm-ostree/0.2/rpm-ostree.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 909b05c

Please sign in to comment.