Skip to content

Key not installed but no error message thrown #168

Description

@ramonheras

Hi,

I'm running the action on a Linux Ubuntu 20.04.2 machine.
Runner version 2.276.1

The action log indicates that the key has been installed successfully, but it does not work. I have inspected the key installation path ~/.ssh, and all seems right (the files have been copied, etc.). So I continued trying to install the key manually using the files already there by running ssh-add id_rsa, and I got the error message Error loading key "id_rsa": invalid format. Examining the id_rsa file, I have discovered that the action adds a '\n' at the end of the key file that invalidates the key. After removing the line with nano and rerunning ssh-add id_rsa, everything works nicely. I also double-checked that the '\n' wasn't part of the original secret in GitHub. In my particular case, I assume the error is produced by the insertion of that trailing '\n' that invalidates the key.

Cheers,
Ramon

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions