From 5f1f18426dc38cdf9ff216a0cf2fc257ffc55078 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Batuhan=20Apayd=C4=B1n?= Date: Wed, 28 Jul 2021 21:17:01 +0300 Subject: [PATCH] fix attest command descriptions, changed attestation flag as predicate (#500) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Batuhan Apaydın --- cmd/cosign/cli/attest.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 {