diff --git a/extras/dagger/main.go b/extras/dagger/main.go index d735f5e14..a7fd5c4fe 100644 --- a/extras/dagger/main.go +++ b/extras/dagger/main.go @@ -374,6 +374,9 @@ func (att *Attestation) Push( // The passphrase to decrypt the private key // +optional passphrase *dagger.Secret, + // Whether not fail if the policy check fails + // +optional + exceptionBypassPolicyCheck *bool, ) (string, error) { container := att.Container(0) args := []string{ @@ -388,6 +391,9 @@ func (att *Attestation) Push( if passphrase != nil { container = container.WithSecretVariable("CHAINLOOP_SIGNING_PASSWORD", passphrase) } + if exceptionBypassPolicyCheck != nil && *exceptionBypassPolicyCheck { + args = append(args, "--exception-bypass-policy-check") + } return container.WithExec(args, execOpts).Stdout(ctx) }