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

Unable to locate executable file: ssh #1942

Open
ndlanier opened this issue Oct 11, 2024 · 1 comment
Open

Unable to locate executable file: ssh #1942

ndlanier opened this issue Oct 11, 2024 · 1 comment

Comments

@ndlanier
Copy link

Thank you 🙇‍♀ for wanting to create an issue in this repository. Before you do, please ensure you are filing the issue in the right place. Issues should only be opened on if the issue relates to code in this repository.

If your issue is relevant to this repository, please delete this text and continue to create this issue. Thank you in advance.

Using the checkout action to pull a dependency repository via ssh

- name: Checkout common-modules@${{ steps.set_versions.outputs.MODULE_VERSION }}
      uses: actions/checkout@v4.2.0
      if: steps.set_versions.outputs.MODULE_APPS && steps.run_condition.outputs.RUN_CONDITION
      with:
        repository: ${{ inputs.COMMON_MODULE_REPO }}
        ssh-key: ${{ secrets.COMMON_MODULE_SSH }}
        ref: ${{ steps.set_versions.outputs.MODULE_VERSION }}
        path: common_modules

I am seeing the following error:
Error: Unable to locate executable file: ssh. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.

We have changed the version we are using back and forth and are still having the issue.
Is the image it's pulling missing the ssh executable or is this a misleading error?

@luisg0nc
Copy link

luisg0nc commented Nov 7, 2024

Hello @ndlanier

Having the same issue and was able to pin point that this seems to happen only on self-hosted runners due to missing ssh-agent. Using ubuntu-latest and it works.

Check this issue: actions/runner#3490

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