From 58bb081d68707e98c3dbd025d9b2eb7a6ace1462 Mon Sep 17 00:00:00 2001 From: Brad Date: Fri, 22 Nov 2024 03:53:38 -0600 Subject: [PATCH] Backup: Attempt to fix SSH --- .github/workflows/github-action-mirror-sync.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/github-action-mirror-sync.yml b/.github/workflows/github-action-mirror-sync.yml index b404b44..e836a41 100644 --- a/.github/workflows/github-action-mirror-sync.yml +++ b/.github/workflows/github-action-mirror-sync.yml @@ -45,14 +45,17 @@ jobs: env mkdir -p ~/.ssh echo "${{ secrets.SSH_KEY_PRIVATE }}" > ~/.ssh/id_ed25519 - chmod 600 ~/.ssh/id_ed25519 + chmod 700 ~/.ssh/id_ed25519 + echo "${{ secrets.SSH_KEY_PUBLIC }}" > ~/.ssh/id_ed25519.pub + echo "${{ secrets.CODEBERG_KNOWN_HOSTS }}" > ~/.ssh/known_hosts + ssh -T git@codeberg.org - name: Sync up to Codeberg id: sync uses: yesolutions/mirror-action@master with: REMOTE: 'git@codeberg.org:thearchivalone/BRS-PSP-Research-Initiative.git' GIT_SSH_PRIVATE_KEY: ${{ secrets.SSH_KEY_PRIVATE }} - GIT_SSH_NO_VERIFY_HOST: "true" + GIT_SSH_KNOWN_HOSTS: ~/.ssh/known_hosts beanstalk: runs-on: ubuntu-24.04 @@ -134,7 +137,6 @@ jobs: - name: Setup secure connection id: secure run: | - git pull origin main env mkdir -p ~/.ssh echo "${{ secrets.SSH_KEY_PRIVATE }}" > ~/.ssh/id_ed25519