diff --git a/cncd/pipeline/pipeline/frontend/yaml/compiler/compiler.go b/cncd/pipeline/pipeline/frontend/yaml/compiler/compiler.go index 7fe38486f..bcf6dcb81 100644 --- a/cncd/pipeline/pipeline/frontend/yaml/compiler/compiler.go +++ b/cncd/pipeline/pipeline/frontend/yaml/compiler/compiler.go @@ -87,6 +87,15 @@ func (c *Compiler) Compile(conf *yaml.Config) *backend.Config { }) } + // create secrets for mask + for _, sec := range c.secrets { + config.Secrets = append(config.Secrets, &backend.Secret{ + Name: sec.Name, + Value: sec.Value, + Mask: true, + }) + } + // overrides the default workspace paths when specified // in the YAML file. if len(conf.Workspace.Base) != 0 {