Error: ssh-private-key argument is empty #25
-
|
I'm getting this error in the "check-in" section: Where do I find this ssh private key and where do I put it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
The error you're encountering indicates that the Here's how to resolve this: 1. Generate an SSH Key PairIf you don't already have an SSH key pair that you want to use for this purpose, you can generate one. Here's how to do it on a Unix-like system:
This generates a new SSH key, using the provided email as a label. 2. Add the Public Key to Your GitHub Repository
3. Add the Private Key to GitHub Secrets
4. Update Your Workflow FileMake sure your workflow file references the secret correctly. If you named your secret ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}If you used a different name, replace Security Note:
By following these steps, you should be able to resolve the error and allow your GitHub Action to authenticate properly using the SSH key. |
Beta Was this translation helpful? Give feedback.
The error you're encountering indicates that the
ssh-private-keyrequired by thei2mint/isee/actions/check-in@masterGitHub Action is either not set or incorrectly referenced in your workflow. This SSH private key is used to authenticate with GitHub for operations that require a higher level of access, like pushing commits.Here's how to resolve this:
1. Generate an SSH Key Pair
If you don't already have an SSH key pair that you want to use for this purpose, you can generate one. Here's how to do it on a Unix-like system:
ssh-keygen -t ed25519 -C "your_email@example.com", replacingyour_email@example.comwith your email.