mirror of
https://github.com/webfactory/ssh-agent.git
synced 2024-11-22 01:00:50 +00:00
Fix unknown host workaround
This commit is contained in:
parent
d4b9b8ff72
commit
f789aebf7a
1 changed files with 5 additions and 0 deletions
5
.github/workflows/demo.yml
vendored
5
.github/workflows/demo.yml
vendored
|
@ -28,6 +28,11 @@ jobs:
|
||||||
container:
|
container:
|
||||||
image: ubuntu:latest
|
image: ubuntu:latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: "Add GitHub to the SSH known hosts file"
|
||||||
|
run: |
|
||||||
|
mkdir -p -m 0700 /home/runner/.ssh
|
||||||
|
curl --silent https://api.github.com/meta | jq --raw-output '"github.com "+.ssh_keys[]' >> /home/runner/.ssh/known_hosts
|
||||||
|
chmod 600 /home/runner/.ssh/known_hosts
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- run: apt update && apt install -y openssh-client git
|
- run: apt update && apt install -y openssh-client git
|
||||||
- name: Setup key
|
- name: Setup key
|
||||||
|
|
Loading…
Reference in a new issue