Skip to content

Commit

Permalink
Merge pull request #191 from ArangoGutierrez/devel/nvgha/ssh
Browse files Browse the repository at this point in the history
Create key path first via mkdirAll
  • Loading branch information
ArangoGutierrez authored Oct 17, 2024
2 parents 27c0c26 + f1eacf9 commit ac56c7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func lockSShk() {
envSshKey := os.Getenv("AWS_SSH_KEY")
Expect(envSshKey).NotTo(BeEmpty())

_, err := os.Create("/home/runner/.cache")
err := os.MkdirAll("/home/runner/.cache", 0700)
Expect(err).NotTo(HaveOccurred())

err = os.WriteFile("/home/runner/.cache/key", []byte(envSshKey), 0600)
Expand Down

0 comments on commit ac56c7b

Please sign in to comment.