@@ -27,11 +27,11 @@ import (
27
27
)
28
28
29
29
type VerifyGithubAttestationCommand struct {
30
- ProvenancePath string
30
+ AttestationPath string
31
31
BuilderID * string
32
32
SourceURI string
33
33
BuildWorkflowInputs map [string ]string
34
- PrintProvenance bool
34
+ PrintAttestation bool
35
35
}
36
36
37
37
func (c * VerifyGithubAttestationCommand ) Exec (ctx context.Context , artifact string ) (* utils.TrustedBuilderID , error ) {
@@ -57,20 +57,20 @@ func (c *VerifyGithubAttestationCommand) Exec(ctx context.Context, artifact stri
57
57
ExpectedID : c .BuilderID ,
58
58
}
59
59
60
- provenance , err := os .ReadFile (c .ProvenancePath )
60
+ attestation , err := os .ReadFile (c .AttestationPath )
61
61
if err != nil {
62
62
fmt .Fprintf (os .Stderr , "Verifying artifact %s: FAILED: %v\n \n " , artifact , err )
63
63
return nil , err
64
64
}
65
65
66
- verifiedProvenance , outBuilderID , err := verifiers .VerifyGithubAttestation (ctx , provenance , provenanceOpts , builderOpts )
66
+ verifiedAttestation , outBuilderID , err := verifiers .VerifyGithubAttestation (ctx , attestation , provenanceOpts , builderOpts )
67
67
if err != nil {
68
68
fmt .Fprintf (os .Stderr , "Verifying artifact %s: FAILED: %v\n \n " , artifact , err )
69
69
return nil , err
70
70
}
71
71
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 ))
74
74
}
75
75
76
76
fmt .Fprintf (os .Stderr , "Verifying artifact %s: PASSED\n \n " , artifact )
0 commit comments