From f9a4b35ff6bea63a67e7d178938db2984481d7dd Mon Sep 17 00:00:00 2001 From: Ramon Petgrave Date: Tue, 25 Jun 2024 15:32:17 +0000 Subject: [PATCH] cli help about default options Signed-off-by: Ramon Petgrave --- README.md | 2 +- cli/slsa-verifier/verify/options.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 618cd9f..4ca52fa 100644 --- a/README.md +++ b/README.md @@ -506,7 +506,7 @@ Flags: -h, --help help for verify-vsa --print-attestation [optional] print the verified attestations to stdout --public-key-hash-algo string [optional] the hash algorithm used to hash the public key, one of SHA256 [efault], SHA384, or SHA512 (default "SHA256") - --public-key-id string [optional] the ID of the public key + --public-key-id string [optional] the ID of the public key, defaults to the SHA256 digest of the base64-encoded public key --public-key-path string path to a public key file --resource-uri string the resource URI to be verified --subject-digest stringArray the digests to be verified. Pass multiple digests by repeating the flag. e.g. : diff --git a/cli/slsa-verifier/verify/options.go b/cli/slsa-verifier/verify/options.go index bebf152..dc92275 100644 --- a/cli/slsa-verifier/verify/options.go +++ b/cli/slsa-verifier/verify/options.go @@ -166,7 +166,7 @@ func (o *VerifyVSAOptions) AddFlags(cmd *cobra.Command) { "path to a public key file") cmd.Flags().StringVar(&o.PublicKeyID, "public-key-id", "", - "[optional] the ID of the public key") + "[optional] the ID of the public key, defaults to the SHA256 digest of the base64-encoded public key") cmd.Flags().StringVar(&o.PublicKeyHashAlgo, "public-key-hash-algo", "SHA256", "[optional] the hash algorithm used to hash the public key, one of SHA256 [efault], SHA384, or SHA512")