diff --git a/.github/workflows/github-action-mirror-sync.yml b/.github/workflows/github-action-mirror-sync.yml index b404b44..80702af 100644 --- a/.github/workflows/github-action-mirror-sync.yml +++ b/.github/workflows/github-action-mirror-sync.yml @@ -45,7 +45,11 @@ 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-copy-id -i ~/.ssh/id_ed25519.pub git@codeberg.org + ssh -T git@codeberg.org - name: Sync up to Codeberg id: sync uses: yesolutions/mirror-action@master @@ -53,6 +57,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 +139,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