From e13085b69fba1179b8636548331955c220779549 Mon Sep 17 00:00:00 2001 From: qwerty287 <80460567+qwerty287@users.noreply.github.com> Date: Sat, 9 Nov 2024 22:04:27 +0200 Subject: [PATCH] Pass settings to services (#4338) --- pipeline/frontend/yaml/compiler/convert.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pipeline/frontend/yaml/compiler/convert.go b/pipeline/frontend/yaml/compiler/convert.go index b31747aa1..d61c9ecb3 100644 --- a/pipeline/frontend/yaml/compiler/convert.go +++ b/pipeline/frontend/yaml/compiler/convert.go @@ -114,11 +114,8 @@ func (c *Compiler) createProcess(container *yaml_types.Container, stepType backe return secret.Value, nil } - // TODO: why don't we pass secrets to detached steps? - if !detached { - if err := settings.ParamsToEnv(container.Settings, environment, "PLUGIN_", true, getSecretValue); err != nil { - return nil, err - } + if err := settings.ParamsToEnv(container.Settings, environment, "PLUGIN_", true, getSecretValue); err != nil { + return nil, err } if err := settings.ParamsToEnv(container.Environment, environment, "", false, getSecretValue); err != nil {