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

Use execFileSync to clean up #80

Merged
merged 1 commit into from Jun 11, 2021
Merged

Conversation

maciejp-ro
Copy link
Contributor

I noticed that on my self-hosted runner ssh-agent processes accumulated despite the action's cleanup. Also nothing was printed, and ssh-add -k executed locally prints a message.

Original execSync call took first argument as the full command to run and it just started a second ssh-agent. ['-k'] argument was treated as options, it didn't have stdio set, so stdio was piped and returned (and ignored), which explains no output.

Before:
image

After:
image

execSync just started a second ssh-agent. `['-k']` argument was
treated as options, it didn't have `stdio` set, so stdio was piped and
returned (and ignored).
@mpdude
Copy link
Member

mpdude commented Jun 11, 2021

Nice catch, and thanks for the contribution!

@mpdude mpdude merged commit a45226b into webfactory:master Jun 11, 2021
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.

None yet

2 participants