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

After update to 0.9.0: The ssh-private-key argument is empty ... #207

Open
hseeberger opened this issue Feb 7, 2024 · 7 comments
Open

Comments

@hseeberger
Copy link

With the update of ssh-agent from 0.8.0 to 0.9.0, we are seeing The ssh-private-key argument is empty. Maybe the secret has not been configured, or you are using a wrong secret name in your workflow file. in all of our repositories.

Before the update, everything worked fine. We are not using any cross-repository actions and the secret surely is configured.

@tagliala
Copy link

tagliala commented Feb 7, 2024

Before the update, everything worked fine. We are not using any cross-repository actions and the secret surely is configured.

I'm having this problem when upgrading from 0.7.0 to 0.8.0. v0.7.0 worked just fine

Run webfactory/ssh-agent@v0.7.0
Adding GitHub.com keys to /home/runner/.ssh/known_hosts
Starting ssh-agent
SSH_AUTH_SOCK=...
SSH_AGENT_PID=...
Adding private key(s) to agent
Identity added: (stdin) ((stdin))
Key(s) added:
Run webfactory/ssh-agent@v0.8.0
  with:
    log-public-key: true
Error: The ssh-private-key argument is empty. Maybe the secret has not been configured, or you are using a wrong secret name in your workflow file.

config:

    - uses: webfactory/ssh-agent@v0.7.0
      with:
        ssh-private-key: ${{ secrets.SOME_KEY }}

I wanted to bisect the action to check the commit that broke the functionality for us, but if this also happen between 0.8 and 0.9 then I'm thinking that there is something else


edit: it worked after cleared all the action caches

@tagliala
Copy link

Another reason is that the action may be after checkout

steps:
- uses: actions/checkout@v4
- uses: webfactory/ssh-agent@v0.7.0
+ uses: webfactory/ssh-agent@v0.9.0
   with:
     ssh-private-key: ${{ secrets.SOME_KEY }}
+ uses: actions/checkout@v4

Lee-clipse added a commit to 2024-Circular-Reference/identity-verify-WAS that referenced this issue Feb 19, 2024
@agluszak
Copy link

I have the same problem.

@tagliala
Copy link

I can confirm this is still randomly happening. Unable to replicate

@cswolfdev
Copy link

I'm running into this problem as well and am out of ideas. I do not have anything cached.

@turboladen
Copy link

turboladen commented May 24, 2024

Running into this after updating from 0.8.0 -> 0.9.0. Clearing my Actions cache didn't resolve. Moving the checkout step to before the ssh-agent check resolved.

turboladen added a commit to telus-agcg/wise_units that referenced this issue May 24, 2024
turboladen added a commit to telus-agcg/wise_units that referenced this issue May 24, 2024
@tagliala
Copy link

tagliala commented May 25, 2024

Moving the checkout step to before the ssh-agent check resolved.

I still have random failures with this approach

Screen attached:

image

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

5 participants