Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build faiks with enter passphrase for private key #17

Open
abhisheksoni27 opened this issue Sep 21, 2019 · 2 comments
Open

Build faiks with enter passphrase for private key #17

abhisheksoni27 opened this issue Sep 21, 2019 · 2 comments

Comments

@abhisheksoni27
Copy link

/usr/bin/docker run --name bb8170d7fc42bc4d49f0b0a9f5bfdb63dcef_8d80bd --label 04bb81 --workdir /github/workspace --rm -e PRIVATE_KEY -e HOST -e USER -e INPUT_ARGS -e HOME -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/api-tinyfold/api-tinyfold":"/github/workspace" 04bb81:70d7fc42bc4d49f0b0a9f5bfdb63dcef whoami
Agent pid 12
Enter passphrase for /github/home/.ssh/deploy_key:
##[error]Docker run failed with exit code 1

@abhisheksoni27
Copy link
Author

Should I be using a key without a passphrase?

@fatihyildizhan
Copy link

I am getting the same error.

The .yml file is like this:

name: SSH-Deploy

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: SSH and deploy node app
      uses: "maddox/actions/ssh@master"
      with:
        args: > 
          --host ${{ secrets.HOST }} --user ${{ secrets.SSH_USER }} --private_key ${{ secrets.SSH_KEY }}
          --script 'whoami'
Agent pid 13
Error loading key "/github/home/.ssh/deploy_key": invalid format
##[error]Docker run failed with exit code 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants