diff --git a/.github/workflows/iac.yml b/.github/workflows/iac.yml index 0db9207d..6a0f5fcc 100644 --- a/.github/workflows/iac.yml +++ b/.github/workflows/iac.yml @@ -127,12 +127,12 @@ jobs: # 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: - key: ${{ secrets.PRIVATE_SSH_KEY_TFMODULES }} - known_hosts: ${{ secrets.KNOWN_HOSTS }} - - run: git clone git@github.com:signalwire/terraform-modules.git + # - name: Install SSH key + # uses: shimataro/ssh-key-action@v2 + # with: + # key: ${{ secrets.PRIVATE_SSH_KEY_TFMODULES }} + # known_hosts: ${{ secrets.KNOWN_HOSTS }} + # - run: git clone git@github.com:signalwire/terraform-modules.git - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v4.0.1 @@ -177,19 +177,19 @@ jobs: - uses: opentofu/setup-opentofu@v1 - name: Plan - uses: gruntwork-io/terragrunt-action@v2 + uses: gruntwork-io/terragrunt-action@v1.0.10 with: tf_version: 1.5.7 tg_version: 0.53.2 tg_dir: ${{ inputs.WORKING_DIR }} - tg_command: 'plan' - # env: - # # configure git to use custom token to clone repository. - # INPUT_PRE_EXEC_1: | - # git config --global url."https://user:${{secrets.PAT_GIT}}@github.com".insteadOf "https://github.com" - # # print git configuration - # INPUT_PRE_EXEC_2: | - # git config --global --list + tg_command: 'init' + env: + # configure git to use custom token to clone repository. + INPUT_PRE_EXEC_1: | + git config --global url."https://user:${{secrets.PAT_GIT}}@github.com".insteadOf "https://github.com" + # print git configuration + INPUT_PRE_EXEC_2: | + git config --global --list # - name: run terragrunt # uses: autero1/action-terragrunt@v1.3.2 # with: