diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index fec3cb98..28707436 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -33,6 +33,14 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Setup SSH keys and agent + run: | + ssh-keygen -t rsa -f ~/.ssh/id_rsa -N '' + eval $(ssh-agent) + echo "SSH_AUTH_SOCK=$SSH_AUTH_SOCK" >> $GITHUB_ENV + echo "SSH_AGENT_PID=$SSH_AGENT_PID" >> $GITHUB_ENV + ssh-add + # Install the latest version of Terraform CLI and configure the Terraform CLI configuration file with a Terraform Cloud user API token - name: Setup Terraform uses: hashicorp/setup-terraform@v3