diff --git a/.github/workflows/github-action-mirror-sync.yml b/.github/workflows/github-action-mirror-sync.yml index b404b44..cb5ddd1 100644 --- a/.github/workflows/github-action-mirror-sync.yml +++ b/.github/workflows/github-action-mirror-sync.yml @@ -45,14 +45,15 @@ jobs: env mkdir -p ~/.ssh echo "${{ secrets.SSH_KEY_PRIVATE }}" > ~/.ssh/id_ed25519 - chmod 600 ~/.ssh/id_ed25519 + chmod 700 ~/.ssh/id_ed25519 + 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: ${{ secrets.CODEBERG_KNOWN_HOSTS }} beanstalk: runs-on: ubuntu-24.04 @@ -134,7 +135,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