mirror of
https://github.com/slsa-framework/slsa-verifier.git
synced 2026-05-17 05:56:37 +00:00
use plain bool
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user