mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-28 11:20:30 +00:00
feat: mask secrets
This commit is contained in:
parent
6052ac006b
commit
b8b72b254f
1 changed files with 9 additions and 0 deletions
|
@ -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 a new issue