File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -374,6 +374,9 @@ func (att *Attestation) Push(
374374 // The passphrase to decrypt the private key
375375 // +optional
376376 passphrase * dagger.Secret ,
377+ // Whether not fail if the policy check fails
378+ // +optional
379+ exceptionBypassPolicyCheck * bool ,
377380) (string , error ) {
378381 container := att .Container (0 )
379382 args := []string {
@@ -388,6 +391,9 @@ func (att *Attestation) Push(
388391 if passphrase != nil {
389392 container = container .WithSecretVariable ("CHAINLOOP_SIGNING_PASSWORD" , passphrase )
390393 }
394+ if exceptionBypassPolicyCheck != nil && * exceptionBypassPolicyCheck {
395+ args = append (args , "--exception-bypass-policy-check" )
396+ }
391397
392398 return container .WithExec (args , execOpts ).Stdout (ctx )
393399}
You can’t perform that action at this time.
0 commit comments