From 861964d97c3254442a2679e60b491b927b9ce1ea Mon Sep 17 00:00:00 2001 From: Malcolm Lockyer Date: Fri, 6 May 2022 11:03:26 +1200 Subject: [PATCH] Tiny doc fix, ssh key in secret needs a blank newline at the end --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7b5d206..6e4969e 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ GitHub Actions only have access to the repository they run for. So, in order to 4. Add the private SSH key to the repository triggering the Github Action: * In your repository, go to the *Settings > Secrets* menu and create a new secret. In this example, we'll call it `SSH_PRIVATE_KEY`. * Put the contents of the *private* SSH key file into the contents field.
- * This key should start with `-----BEGIN ... PRIVATE KEY-----`, consist of many lines and ends with `-----END ... PRIVATE KEY-----`. + * This key should start with `-----BEGIN ... PRIVATE KEY-----`, consist of many lines and ends with `-----END ... PRIVATE KEY-----`. Make sure there is a blank newline at the end of the secret value otherwise you will get errors like `Error loading key "(stdin)": invalid format` from `ssh-add`. 5. In your workflow definition file, add the following step. Preferably this would be rather on top, near the `actions/checkout@v2` line. ```yaml