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

fix(cli,install): authenticity of host 'github.com' can't be established #282

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

geoffreyvanwyk
Copy link

@geoffreyvanwyk geoffreyvanwyk commented Apr 17, 2024

When using the install_plugins command noninteractively on automation platforms such as GitHub Actions or Ansible, it can sometimes hang and never complete. When I ran the command interactively, it prompted me to either accept or reject to the host key of an unknown host.

The authenticity of host 'github.com (20.87.245.0)' can't be established.
ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])?

I found out the cause was the plugin https://github.com/alexwforsythe/tmux-which-key having a git submodule with an SSH URL: https://github.com/alexwforsythe/tmux-which-key/blob/main/.gitmodules . For open source projects, this is an error.

This pull request proposes to exit the install_plugins command immediately if the host is unknown.

Resolves #219

This occurs because the URL used to connect to GitHub is for SSH. This is not necessary. HTTPS is enough.
This causes the `install_plugins` command to hang when used noninteractively on automation platforms such
as GitHub Actions or Ansible.

Resolves tmux-plugins#219
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.

Running ~/.tmux/plugins/tpm/bin/install_plugins hangs when running in Github Actions
1 participant