From 31da39e2a4b7303bec9cec27f508438b6ab09c50 Mon Sep 17 00:00:00 2001 From: Jared Baker Date: Thu, 26 Sep 2024 16:36:38 -0400 Subject: [PATCH 1/2] ci: use `hashicorp/setup-terraform` in provider workflow The default ubuntu image no longer includes Terraform by default. We now need to install it at runtime instead. --- .github/workflows/provider.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/provider.yml b/.github/workflows/provider.yml index cfdc90c4644..3e6166d943f 100644 --- a/.github/workflows/provider.yml +++ b/.github/workflows/provider.yml @@ -281,6 +281,10 @@ jobs: - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: go-version-file: go.mod + - uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd + with: + terraform_version: ${{ env.TERRAFORM_VERSION }} + terraform_wrapper: false - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 continue-on-error: true timeout-minutes: 2 From 23c502386bf7c51649476e1b04bdf75e1e0a2ebe Mon Sep 17 00:00:00 2001 From: Jared Baker Date: Fri, 27 Sep 2024 09:38:10 -0400 Subject: [PATCH 2/2] ci: use `hashicorp/setup-terraform` in resource-counts workflow --- .github/workflows/resource-counts.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/resource-counts.yml b/.github/workflows/resource-counts.yml index 5abe6ce0dea..200f2c095a9 100644 --- a/.github/workflows/resource-counts.yml +++ b/.github/workflows/resource-counts.yml @@ -19,6 +19,10 @@ jobs: installation_retrieval_payload: ${{ secrets.INSTALLATION_ID }} private_key: ${{secrets.APP_PEM }} - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 + - uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd + with: + terraform_version: ${{ env.TERRAFORM_VERSION }} + terraform_wrapper: false - run: | touch main.tf cat << EOF > main.tf