mirror of
https://github.com/anchore/syft
synced 2024-11-10 14:24:12 +00:00
Update README.md (#772)
Update `Example attest` Signed-off-by: Idan Frimark <idanf@cisco.com>
This commit is contained in:
parent
d7a23e4bb2
commit
ed1cbf50d9
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
its remote reference. Replace $MY_PRIVATE_KEY with a private key you own or have generated with cosign.
|
||||||
|
|
||||||
```bash
|
```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
|
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
|
Verify the new attestation exists on your image
|
||||||
|
|
Loading…
Reference in a new issue