Skip to content

Conversation

@fkorotkov
Copy link
Contributor

No description provided.

@fkorotkov fkorotkov requested a review from edigaryev January 5, 2025 22:43
"source ~/.zprofile",
"[[ ! -d ~/.ssh ]] && mkdir ~/.ssh 2>/dev/null",
"chmod 777 ~/.ssh",
"ssh-keyscan -t rsa,ecdsa,ed25519 github.com >> ~/.ssh/known_hosts",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is secure, as there's always possibility of MITM 🤔

How about we add static ~/.ssh/known_hosts from GitHub's SSH key fingerprints
help article instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

something like 9743704?

// Add GitHub to known hosts
// Similar to https://github.com/actions/runner-images/blob/main/images/macos/scripts/build/configure-ssh.sh
provisioner "file" {
source = "github_known_hosts"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it point to data/github_known_hosts? 🤔

@fkorotkov fkorotkov merged commit 2545826 into master Jan 6, 2025
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.

3 participants