mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-04-10 13:54:13 +00:00
[Backport] sanitizeParamKey "-" to "_" for plugin settings (#1511)
da997fa34a/pipeline/frontend/yaml/compiler/settings/params.go (L45-L49)
This commit is contained in:
parent
aa5be76c2b
commit
36fbd3a2bc
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ func paramsToEnv(from map[string]interface{}, to map[string]string, secrets map[
|
|||
func sanitizeParamKey(k string) string {
|
||||
return "PLUGIN_" +
|
||||
strings.ToUpper(
|
||||
strings.ReplaceAll(k, ".", "_"),
|
||||
strings.ReplaceAll(strings.ReplaceAll(k, ".", "_"), "-", "_"),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue