diff --git a/.github/workflows/iac.yml b/.github/workflows/iac.yml index a07aaef7..1159793d 100644 --- a/.github/workflows/iac.yml +++ b/.github/workflows/iac.yml @@ -85,6 +85,12 @@ on: PAT_GIT: required: false description: A PAT token to clone the repository + KNOWN_HOSTS: + required: false + description: A known hosts file to clone the repository + PRIVATE_SSH_KEY_TFMODULES: + required: false + description: A private SSH key to clone the repository jobs: terragrunt: @@ -149,6 +155,12 @@ jobs: - uses: opentofu/setup-opentofu@v1 + - name: Install SSH key + uses: shimataro/ssh-key-action@v2 + with: + key: ${{ secrets.PRIVATE_SSH_KEY_TFMODULES }} + known_hosts: ${{ secrets.KNOWN_HOSTS }} + - name: Init id: init uses: gruntwork-io/terragrunt-action@v1.0.10