@@ -27,11 +27,11 @@ import (
2727)
2828
2929type VerifyGithubAttestationCommand struct {
30- ProvenancePath string
30+ AttestationPath string
3131 BuilderID * string
3232 SourceURI string
3333 BuildWorkflowInputs map [string ]string
34- PrintProvenance bool
34+ PrintAttestation bool
3535}
3636
3737func (c * VerifyGithubAttestationCommand ) Exec (ctx context.Context , artifact string ) (* utils.TrustedBuilderID , error ) {
@@ -57,20 +57,20 @@ func (c *VerifyGithubAttestationCommand) Exec(ctx context.Context, artifact stri
5757 ExpectedID : c .BuilderID ,
5858 }
5959
60- provenance , err := os .ReadFile (c .ProvenancePath )
60+ attestation , err := os .ReadFile (c .AttestationPath )
6161 if err != nil {
6262 fmt .Fprintf (os .Stderr , "Verifying artifact %s: FAILED: %v\n \n " , artifact , err )
6363 return nil , err
6464 }
6565
66- verifiedProvenance , outBuilderID , err := verifiers .VerifyGithubAttestation (ctx , provenance , provenanceOpts , builderOpts )
66+ verifiedAttestation , outBuilderID , err := verifiers .VerifyGithubAttestation (ctx , attestation , provenanceOpts , builderOpts )
6767 if err != nil {
6868 fmt .Fprintf (os .Stderr , "Verifying artifact %s: FAILED: %v\n \n " , artifact , err )
6969 return nil , err
7070 }
7171
72- if c .PrintProvenance {
73- fmt .Fprintf (os .Stdout , "%s\n " , string (verifiedProvenance ))
72+ if c .PrintAttestation {
73+ fmt .Fprintf (os .Stdout , "%s\n " , string (verifiedAttestation ))
7474 }
7575
7676 fmt .Fprintf (os .Stderr , "Verifying artifact %s: PASSED\n \n " , artifact )
0 commit comments