mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-24 10:07:21 +02:00
feat: mask secrets
This commit is contained in:
parent
6052ac006b
commit
b8b72b254f
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user