diff --git a/.github/github_pushback.sh b/.github/github_pushback.sh index d06e5b7..f355253 100755 --- a/.github/github_pushback.sh +++ b/.github/github_pushback.sh @@ -10,7 +10,8 @@ ssh-keyscan -H git.pika-os.com >> ~/.ssh/known_hosts #export GIT_SSH_COMMAND="ssh -F ~/.ssh/config" -ssh -o StrictHostKeyChecking=no -vT git@git.pika-os.com +#ssh -o StrictHostKeyChecking=no -vT git@git.pika-os.com +ssh -vT git@git.pika-os.com # Commit changes to git git config --global user.name 'ferreo' diff --git a/.github/workflows/github-pushback.yml b/.github/workflows/github-pushback.yml index a85bce5..fa51f11 100644 --- a/.github/workflows/github-pushback.yml +++ b/.github/workflows/github-pushback.yml @@ -21,10 +21,13 @@ jobs: - name: Is github check run: echo "${PWD##*/}" | grep "gitea-pika-first-setup" || exit 1 - - name: Set up SSH - uses: webfactory/ssh-agent@v0.5.3 + - name: Install SSH key + uses: shimataro/ssh-key-action@v2 with: - ssh-private-key: ${{ secrets.GITEA_SSH_KEY }} + key: ${{ secrets.GITEA_SSH_KEY }} + name: id_rsa + known_hosts: ${{ secrets.KNOWN_HOSTS }} + if_key_exists: replace - name: Run env: