use plain bool

Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
This commit is contained in:
Ramon Petgrave
2024-06-20 18:12:51 +00:00
parent fec61b1f27
commit 8befbc6e94
2 changed files with 3 additions and 3 deletions

View File

@@ -199,7 +199,7 @@ func verifyVSACmd() *cobra.Command {
VerifierID: &o.VerifierID,
ResourceURI: &o.ResourceURI,
VerifiedLevels: &o.VerifiedLevels,
PrintAttestation: &o.PrintAttestation,
PrintAttestation: o.PrintAttestation,
PublicKeyPath: &o.PublicKeyPath,
PublicKeyID: &o.PublicKeyID,
PublicKeyHashAlgo: &o.SignatureHashAlgo,

View File

@@ -35,7 +35,7 @@ type VerifyVSACommand struct {
VerifierID *string
ResourceURI *string
VerifiedLevels *[]string
PrintAttestation *bool
PrintAttestation bool
PublicKeyPath *string
PublicKeyID *string
PublicKeyHashAlgo *string
@@ -93,7 +93,7 @@ func (c *VerifyVSACommand) Exec(ctx context.Context) (*utils.TrustedAttesterID,
printFailed(err)
return nil, err
}
if *c.PrintAttestation {
if c.PrintAttestation {
fmt.Fprintf(os.Stdout, "%s\n", string(verifiedProvenance))
}
fmt.Fprintf(os.Stderr, "Verifying VSA: PASSED\n\n")