@@ -75,7 +75,7 @@ var ErrAttestationNotInitialized = errors.New("attestation not yet initialized")
7575
7676func (action * AttestationAdd ) Run (ctx context.Context , attestationID , materialName , materialValue , materialType string , annotations map [string ]string ) (* AttestationStatusMaterial , error ) {
7777 // initialize the crafter. If attestation-id is provided we assume the attestation is performed using remote state
78- crafter , err := newCrafter (& newCrafterStateOpts {enableRemoteState : (attestationID != "" ), localStatePath : action .localStatePath }, action .CPConnection , action .newCrafterOpts . opts ... )
78+ crafter , err := newCrafter (& newCrafterStateOpts {enableRemoteState : (attestationID != "" ), localStatePath : action .localStatePath }, action .CPConnection , action .opts ... )
7979 if err != nil {
8080 return nil , fmt .Errorf ("failed to load crafter: %w" , err )
8181 }
@@ -183,7 +183,7 @@ func (action *AttestationAdd) Run(ctx context.Context, attestationID, materialNa
183183
184184// GetPolicyEvaluations is a Wrapper around the getPolicyEvaluations
185185func (action * AttestationAdd ) GetPolicyEvaluations (ctx context.Context , attestationID string ) (map [string ][]* PolicyEvaluation , error ) {
186- crafter , err := newCrafter (& newCrafterStateOpts {enableRemoteState : (attestationID != "" ), localStatePath : action .localStatePath }, action .CPConnection , action .newCrafterOpts . opts ... )
186+ crafter , err := newCrafter (& newCrafterStateOpts {enableRemoteState : (attestationID != "" ), localStatePath : action .localStatePath }, action .CPConnection , action .opts ... )
187187 if err != nil {
188188 return nil , fmt .Errorf ("failed to load crafter: %w" , err )
189189 }
0 commit comments