From 38dc468e7f22c6b96ecb354743f1262a74c128db Mon Sep 17 00:00:00 2001 From: Balazs Czoma Date: Thu, 20 Jun 2024 09:06:11 -0400 Subject: [PATCH] Private prov --- .github/workflows/module-test-pipeline.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/module-test-pipeline.yml b/.github/workflows/module-test-pipeline.yml index 5e4d113..7c43d72 100644 --- a/.github/workflows/module-test-pipeline.yml +++ b/.github/workflows/module-test-pipeline.yml @@ -10,8 +10,18 @@ jobs: - name: Check out code uses: actions/checkout@v4 - - name: Set up Terraform latest - uses: hashicorp/setup-terraform@v2 + - name: Set up Terraform latest - public + if: ${{ secrets.PRIVATE_TEST_PROVIDER_VERSION != "" }} + uses: hashicorp/setup-terraform@v3 + with: + terraform_wrapper: true + + - name: Set up Terraform latest - private, with token + if: ${{ secrets.PRIVATE_TEST_PROVIDER_VERSION == "" }} + uses: hashicorp/setup-terraform@v3 + with: + cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }} + terraform_wrapper: true - name: Setup test broker run: |