Merge pull request #147 from CrabHo/add-mask-secret

feat: mask secrets
This commit is contained in:
Laszlo Fogas 2020-11-20 09:58:02 +01:00 committed by GitHub
commit 61a0018f35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {