From 0752d724d070eb1800c849ea15c05ad9f3766c5a 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 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/github-action-mirror-sync.yml b/.github/workflows/github-action-mirror-sync.yml index b404b44..f43b6f3 100644 --- a/.github/workflows/github-action-mirror-sync.yml +++ b/.github/workflows/github-action-mirror-sync.yml @@ -45,7 +45,10 @@ 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 + ssh-copy-id -i ~/.ssh/id_ed25519 git@codeberg.org + ssh -T git@codeberg.org - name: Sync up to Codeberg id: sync uses: yesolutions/mirror-action@master @@ -53,6 +56,7 @@ jobs: 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: ${{ secrets.CODEBERG_KNOWN_HOSTS }} beanstalk: runs-on: ubuntu-24.04 @@ -134,7 +138,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