1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-09-15 18:57:01 +00:00

fix: print line after password prompt (#1014)

fixes https://github.com/nektos/act/issues/979
This commit is contained in:
Ryan 2022-02-25 17:47:49 +01:00 committed by GitHub
parent 9150617dec
commit 8de4217002

View file

@ -26,6 +26,7 @@ func newSecrets(secretList []string) secrets {
} else {
fmt.Printf("Provide value for '%s': ", secretPairParts[0])
val, err := term.ReadPassword(int(os.Stdin.Fd()))
fmt.Println()
if err != nil {
log.Errorf("failed to read input: %v", err)
os.Exit(1)