From f641d84eb5cd489c98b39b41b69dbea9a3312e01 Mon Sep 17 00:00:00 2001 From: almariah Date: Tue, 7 May 2019 20:10:52 +0200 Subject: [PATCH] Fix input artifacts with multiple ssh keys (#1338) --- workflow/artifacts/git/git.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow/artifacts/git/git.go b/workflow/artifacts/git/git.go index e220cf835d4f..eb2e98104abd 100644 --- a/workflow/artifacts/git/git.go +++ b/workflow/artifacts/git/git.go @@ -58,7 +58,7 @@ func writePrivateKey(key string, insecureIgnoreHostKey bool) error { return errors.InternalWrapError(err) } sshDir := fmt.Sprintf("%s/.ssh", usr.HomeDir) - err = os.Mkdir(sshDir, 0700) + err = os.MkdirAll(sshDir, 0700) if err != nil { return errors.InternalWrapError(err) }