Add support for ssh passphrases.

This commit is contained in:
Marcin Bilski
2022-01-14 12:35:20 +01:00
parent 6768e02d91
commit c327898faa
4 changed files with 13 additions and 11 deletions

View File

@@ -137,7 +137,8 @@ func main() {
if len(kv) != 2 {
log.Fatal("bad git path:", path)
}
options = append(options, api.GitWithEphemeralTags(kv[0], kv[1]))
password := os.Getenv("SSH_PASSPHRASE")
options = append(options, api.GitWithEphemeralTags(kv[0], kv[1], password))
}
for _, path := range vcsPaths {