Remove all secrets in context.go if disabled
1 files changed, 4 insertions(+), 0 deletions(-) M worker/context.go
M worker/context.go => worker/context.go +4 -0
@@ 96,6 96,10 @@ func (wctx *WorkerContext) RunBuild( panic(errors.Wrap(err, "job.SetStatus")) } + if !job.Secrets { + manifest.Secrets = []string{} + } + defer func() { if err := recover(); err != nil { log.Printf("run_build panic: %v", err)