Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions pkg/cmd/attestation/verify/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,15 @@ func NewVerifyCmd(f *cmdutil.Factory, runF func(*Options) error) *cobra.Command
or %[1]s--cert-identity%[1]s flags to validate the signer workflow's identity.

For more policy verification options, see the other available flags.

When the %[1]s--format json%[1]s flag is included, the command will output
an array of JSON objects. Each object contains a verified attestation
bundle and another object called verificationResult. The verificationResult
object contains detailed information about the bundle's content and
fields used during the verification process. This includes:
- The attestation's signature
- The attestation's statement
- The attestation's predicate
Comment on lines +89 to +92
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a comprehensive list? And just checking, is this the right place to list what fields are used during the verification process? Maybe we could note what is verified under the "By default, the verify command will:" section, and then in the --json helper notes we can mention that details used for verification are within the verificationResult object.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It isn't an exhaustive list, it just includes a lists a few fields surfaced in the verificationResult object the user might find particularly useful. These could definitely be moved under a json helper notes section.

Copy link
Copy Markdown
Contributor

@jkylekelly jkylekelly Mar 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah okay, it might be good to say "This includes useful fields, such as: " or similar. Just in case others assume it's exhaustive.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to take a stab at this tomorrow fwiw.

`, "`"),
Example: heredoc.Doc(`
# Verify an artifact linked with a repository
Expand Down
Loading