-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
ssh-key didn't checkout with ssh url #291
Comments
Is it a fork PR? Secrets aren't available during fork PRs. |
I haven't seen that error before. Are you using a job container? |
Hi Eric, Nope, here's my full workflow file, it is a basic one. name: Deploy Site on push
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
with:
ssh-key: ${{ secrets.DEPLOY_KEY }}
- name: Deploy to Server
uses: AEnterprise/rsync-deploy@v1.0
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
ARGS: -avz --delete
SERVER_PORT: "22"
FOLDER: ./
SERVER_IP: ${{ secrets.SSH_HOST }}
USERNAME: ${{ secrets.SSH_USERNAME }}
SERVER_DESTINATION: /var/www/xxx/ So this ssh error is not expected, right? As the workflow can use it without issue, it only happens when I log in the server and do it manually. Maybe something to do with my user role? |
oh i see now.
It looks like you might need to add github.com to your known_hosts file (for example) or turn of strict host checking |
Based on this: # Known hosts in addition to the user and global host key database. The public SSH
# keys for a host may be obtained using the utility `ssh-keyscan`. For example,
# `ssh-keyscan github.com`. The public key for github.com is always implicitly
# added.
ssh-known-hosts: '' I would think that adding |
Hi,
I've got a simple automated workflow for my static blog, here's my config:
except when I use
git remote get-url origin
, I find it is still an HTTPS url.I would like to have ssh url, is there anything I missed in this config?
Thanks for your help.
Luna
The text was updated successfully, but these errors were encountered: