From 4fb6767fe3a51eba94f8776ad8d3639e81b2d74e Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Thu, 4 Jan 2024 12:08:19 -0300 Subject: [PATCH] debug --- .github/workflows/iac.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/iac.yml b/.github/workflows/iac.yml index d58b79a2..59baa0d8 100644 --- a/.github/workflows/iac.yml +++ b/.github/workflows/iac.yml @@ -105,13 +105,22 @@ jobs: ref: main path: actions - - uses: webfactory/ssh-agent@v0.8.0 - with: - ssh-private-key: ${{ secrets.PRIVATE_SSH_KEY_TFMODULES }} + # - uses: webfactory/ssh-agent@v0.8.0 + # with: + # ssh-private-key: ${{ secrets.PRIVATE_SSH_KEY_TFMODULES }} - name: Set up SSH run: | - git config --global core.sshCommand "ssh -F $HOME/.ssh//config" + mkdir -p /home/runner/.ssh + ssh-keyscan -H github.com >> $HOME/.ssh/known_hosts + echo "${{ secrets.PRIVATE_SSH_KEY_TFMODULES }}" > $HOME/.ssh/github_actions + chmod 600 /home/runner/.ssh/github_actions + ssh-agent -a $SSH_AUTH_SOCK > /dev/null + ssh-add /home/runner/.ssh/github_actions + git config --global core.sshCommand "ssh -F $HOME/.ssh/github_actions" + env: + PRIVATE_SSH_KEY_TFMODULES: ${{ secrets.PRIVATE_SSH_KEY_TFMODULES }} + SSH_AUTH_SOCK: /tmp/ssh_agent.sock # - name: Install SSH key # uses: shimataro/ssh-key-action@v2 # with: