From b83227e96104e2e2fe3bd0790ec72dc9a08e37b3 Mon Sep 17 00:00:00 2001 From: Jover Lee Date: Mon, 16 Dec 2024 14:44:25 -0800 Subject: [PATCH] terraform-lint: Simplify Terraform installation Simplify Terraform installation based on feedback Follows GH Action docs to add to the system `PATH` via `GITHUB_PATH` --- .github/workflows/terraform-lint.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/terraform-lint.yml b/.github/workflows/terraform-lint.yml index 6d597cc..c56dfe0 100644 --- a/.github/workflows/terraform-lint.yml +++ b/.github/workflows/terraform-lint.yml @@ -24,14 +24,10 @@ jobs: runs-on: ubuntu-24.04 steps: - name: Install Terraform - run: > - wget -O - https://apt.releases.hashicorp.com/gpg - | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg - - echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" - | sudo tee /etc/apt/sources.list.d/hashicorp.list - - sudo apt update && sudo apt install terraform + run: | + wget -O terraform.zip https://releases.hashicorp.com/terraform/1.10.2/terraform_1.10.2_linux_amd64.zip + unzip terraform.zip -d "$HOME/terraform" + echo "$HOME/terraform" >> "$GITHUB_PATH" - uses: actions/checkout@v4