Skip to content

fix: reuse SSH agent across repeated action steps#114

Open
whyujjwal wants to merge 1 commit into
deployphp:masterfrom
whyujjwal:fix/reuse-ssh-agent-between-steps
Open

fix: reuse SSH agent across repeated action steps#114
whyujjwal wants to merge 1 commit into
deployphp:masterfrom
whyujjwal:fix/reuse-ssh-agent-between-steps

Conversation

@whyujjwal
Copy link
Copy Markdown

Summary

  • reuse an existing SSH agent across repeated action steps instead of unconditionally starting a new one on the same socket
  • remove stale sockets before starting a fresh agent and export SSH_AGENT_PID when a new agent is created
  • add a regression test that reproduces two sequential action runs with the same SSH_AUTH_SOCK

Testing

  • npm test
  • npm run typecheck

Fixes #31

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

Successfully merging this pull request may close these issues.

BUG: Cannot execute two commands with Deployer Action in one workflow

1 participant