From 08cd152c07d05eda1f2c46a6353642265ebc1261 Mon Sep 17 00:00:00 2001 From: Mirian Okradze Date: Wed, 24 Jan 2024 10:41:23 +0400 Subject: [PATCH] build: ssh key --- .github/workflows/tf_plan_server.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tf_plan_server.yml b/.github/workflows/tf_plan_server.yml index da6793a4..113f890c 100644 --- a/.github/workflows/tf_plan_server.yml +++ b/.github/workflows/tf_plan_server.yml @@ -103,8 +103,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.github_personal_access_token }} TF_WORKSPACE: ${{ inputs.gh_environment }} run: | - eval `ssh-agent -s` - ssh-add - <<< '${{ secrets.github_ssh_private_key }}' terraform init - name: Terraform Validate @@ -129,7 +127,10 @@ jobs: TF_WORKSPACE: ${{ inputs.gh_environment }} GIT_SSH_COMMAND: "ssh -i ~/.ssh/id_ed25519" - run: terraform plan + run: | + eval `ssh-agent -s` + ssh-add - <<< '${{ secrets.github_ssh_private_key }}' + terraform plan continue-on-error: true - name: Terraform Plan Status