diff --git a/cmd/cosign/cli/attest.go b/cmd/cosign/cli/attest.go index 3b264db5432..e0b480d62b8 100644 --- a/cmd/cosign/cli/attest.go +++ b/cmd/cosign/cli/attest.go @@ -61,25 +61,25 @@ func Attest() *ffcli.Command { EXAMPLES # attach an attestation to a container image Google sign-in (experimental) - COSIGN_EXPERIMENTAL=1 cosign attest -attestation + COSIGN_EXPERIMENTAL=1 cosign attest -predicate # attach an attestation to a container image with a local key pair file - cosign attest -attestation -key cosign.key + cosign attest -predicate -key cosign.key # attach an attestation to a container image with a key pair stored in Azure Key Vault - cosign attest -attestation -key azurekms://[VAULT_NAME][VAULT_URI]/[KEY] + cosign attest -predicate -key azurekms://[VAULT_NAME][VAULT_URI]/[KEY] # attach an attestation to a container image with a key pair stored in AWS KMS - cosign attest -attestation -key awskms://[ENDPOINT]/[ID/ALIAS/ARN] + cosign attest -predicate -key awskms://[ENDPOINT]/[ID/ALIAS/ARN] # attach an attestation to a container image with a key pair stored in Google Cloud KMS - cosign attest -attestation -key gcpkms://projects/[PROJECT]/locations/global/keyRings/[KEYRING]/cryptoKeys/[KEY]/versions/[VERSION] + cosign attest -predicate -key gcpkms://projects/[PROJECT]/locations/global/keyRings/[KEYRING]/cryptoKeys/[KEY]/versions/[VERSION] # attach an attestation to a container image with a key pair stored in Hashicorp Vault - cosign attest -attestation -key hashivault://[KEY] + cosign attest -predicate -key hashivault://[KEY] # attach an attestation to a container image which does not fully support OCI media types - COSIGN_DOCKER_MEDIA_TYPES=1 cosign attest -attestation -key cosign.key legacy-registry.example.com/my/image + COSIGN_DOCKER_MEDIA_TYPES=1 cosign attest -predicate -key cosign.key legacy-registry.example.com/my/image `, FlagSet: flagset, Exec: func(ctx context.Context, args []string) error {