This commit is contained in:
Akram Ben Aissi 2023-11-02 23:29:11 -06:00 committed by GitHub
commit c57b293790
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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