fix: add ssh-keyscan for GitHub host key verification

This commit is contained in:
peptiderepo
2026-04-07 12:46:45 +07:00
committed by GitHub
parent ce05735544
commit d86a259693

View File

@@ -84,6 +84,10 @@ jobs:
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: ${{ secrets.SSH_PORT }}
script: |
# Ensure GitHub host key is trusted (one-time setup).
mkdir -p ~/.ssh
ssh-keyscan github.com >> ~/.ssh/known_hosts 2>/dev/null
PLUGIN_DIR="$HOME/domains/peptiderepo.com/public_html/wp-content/plugins/peptide-news-plugin"
REPO_URL="git@github.com:peptiderepo/peptide-news-plugin.git"