diff --git a/engine/compiler/compiler.go b/engine/compiler/compiler.go index 1a68691..5853e5a 100644 --- a/engine/compiler/compiler.go +++ b/engine/compiler/compiler.go @@ -317,6 +317,10 @@ func (c *Compiler) Compile(ctx context.Context, args runtime.CompilerArgs) runti if !src.When.Match(match) { dst.RunPolicy = runtime.RunNever } + + if c.isPrivileged(src) { + dst.Privileged = true + } } // create steps