From ed1cbf50d9ce40e4bd262060732ecf1f87bb32e8 Mon Sep 17 00:00:00 2001 From: Idan Frimark <40820488+FrimIdan@users.noreply.github.com> Date: Thu, 27 Jan 2022 21:59:36 +0200 Subject: [PATCH] Update README.md (#772) Update `Example attest` Signed-off-by: Idan Frimark --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b54b108d2..a22efdcea 100644 --- a/README.md +++ b/README.md @@ -425,9 +425,9 @@ Note for the following example replace `test/image:latest` with an image you own its remote reference. Replace $MY_PRIVATE_KEY with a private key you own or have generated with cosign. ```bash -cosign sign -key $MY_PRIVATE_KEY test/image:latest +cosign sign --key $MY_PRIVATE_KEY test/image:latest syft test/image:latest -o json > test_latest_sbom.json -cosign attest -predicate test_latest_sbom.json -key $MY_PRIVATE_KEY +cosign attest --predicate test_latest_sbom.json --key $MY_PRIVATE_KEY test/image:latest ``` Verify the new attestation exists on your image