Skip to content

Commit c6128d9

Browse files
authored
Add --platform to cosign CLI examples (#437)
Without --platform, multi-arch images return only the image index SBOM instead of actual software packages.
1 parent 6a923fb commit c6128d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/metadata/pages/sboms.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ In the CLI, complete the following steps to download the SBOM for a component:
5454
+
5555
[source]
5656
----
57-
$ cosign download sbom $IMAGE
57+
$ cosign download sbom --platform linux/amd64 $IMAGE
5858
----
5959

6060
+
@@ -63,7 +63,7 @@ $ cosign download sbom $IMAGE
6363
+
6464
[source]
6565
----
66-
$ cosign download sbom $IMAGE > sbom.txt
66+
$ cosign download sbom --platform linux/amd64 $IMAGE > sbom.txt
6767
----
6868

6969
== Reading the SBOM

0 commit comments

Comments
 (0)