1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-08-06 17:40:58 +00:00

Allow empty string secrets

This commit is contained in:
Oliver Bristow 2019-01-17 07:18:21 +00:00
parent 2c27f29e64
commit 4634ef752b

View file

@ -333,7 +333,7 @@ func (action *actionDef) applyEnvironmentSecrets(env *[]string) {
secretCache = make(map[string]string) secretCache = make(map[string]string)
} }
if secretCache[secret] == "" { if _, ok := secretCache[secret]; !ok {
fmt.Printf("Provide value for '%s': ", secret) fmt.Printf("Provide value for '%s': ", secret)
val, err := gopass.GetPasswdMasked() val, err := gopass.GetPasswdMasked()
if err != nil { if err != nil {