Merge pull request #1567 from GSA/fix-terraform-actions

Update Terraform installation and configuration
This commit is contained in:
ccostino
2025-02-20 10:52:20 -05:00
committed by GitHub
10 changed files with 73 additions and 3 deletions

View File

@@ -16,6 +16,14 @@ jobs:
with: with:
fetch-depth: 2 fetch-depth: 2
# Looks like we need to install Terraform ourselves now!
# https://github.com/actions/runner-images/issues/10796#issuecomment-2417064348
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: "^1.7.5"
terraform_wrapper: false
- name: Check for changes to Terraform - name: Check for changes to Terraform
id: changed-terraform-files id: changed-terraform-files
uses: tj-actions/changed-files@v45 uses: tj-actions/changed-files@v45

View File

@@ -20,6 +20,14 @@ jobs:
with: with:
fetch-depth: 2 fetch-depth: 2
# Looks like we need to install Terraform ourselves now!
# https://github.com/actions/runner-images/issues/10796#issuecomment-2417064348
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: "^1.7.5"
terraform_wrapper: false
- name: Check for changes to Terraform - name: Check for changes to Terraform
id: changed-terraform-files id: changed-terraform-files
uses: tj-actions/changed-files@v45 uses: tj-actions/changed-files@v45

View File

@@ -22,6 +22,14 @@ jobs:
with: with:
fetch-depth: 2 fetch-depth: 2
# Looks like we need to install Terraform ourselves now!
# https://github.com/actions/runner-images/issues/10796#issuecomment-2417064348
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: "^1.7.5"
terraform_wrapper: false
- name: Check for changes to Terraform - name: Check for changes to Terraform
id: changed-terraform-files id: changed-terraform-files
uses: tj-actions/changed-files@v45 uses: tj-actions/changed-files@v45

View File

@@ -15,6 +15,14 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
# Looks like we need to install Terraform ourselves now!
# https://github.com/actions/runner-images/issues/10796#issuecomment-2417064348
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: "^1.7.5"
terraform_wrapper: false
- name: Check for drift - name: Check for drift
uses: dflook/terraform-check@v1 uses: dflook/terraform-check@v1
env: env:
@@ -35,6 +43,14 @@ jobs:
with: with:
ref: 'production' ref: 'production'
# Looks like we need to install Terraform ourselves now!
# https://github.com/actions/runner-images/issues/10796#issuecomment-2417064348
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: "^1.7.5"
terraform_wrapper: false
- name: Check for drift - name: Check for drift
uses: dflook/terraform-check@v1 uses: dflook/terraform-check@v1
env: env:
@@ -55,6 +71,14 @@ jobs:
with: with:
ref: 'production' ref: 'production'
# Looks like we need to install Terraform ourselves now!
# https://github.com/actions/runner-images/issues/10796#issuecomment-2417064348
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: "^1.7.5"
terraform_wrapper: false
- name: Check for drift - name: Check for drift
uses: dflook/terraform-check@v1 uses: dflook/terraform-check@v1
env: env:

View File

@@ -18,6 +18,14 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
# Looks like we need to install Terraform ourselves now!
# https://github.com/actions/runner-images/issues/10796#issuecomment-2417064348
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: "^1.7.5"
terraform_wrapper: false
- name: Terraform format - name: Terraform format
id: format id: format
run: terraform fmt -check run: terraform fmt -check

View File

@@ -18,6 +18,14 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
# Looks like we need to install Terraform ourselves now!
# https://github.com/actions/runner-images/issues/10796#issuecomment-2417064348
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: "^1.7.5"
terraform_wrapper: false
- name: Terraform format - name: Terraform format
id: format id: format
run: terraform fmt -check run: terraform fmt -check

View File

@@ -18,6 +18,14 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
# Looks like we need to install Terraform ourselves now!
# https://github.com/actions/runner-images/issues/10796#issuecomment-2417064348
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: "^1.7.5"
terraform_wrapper: false
- name: Terraform format - name: Terraform format
id: format id: format
run: terraform fmt -check run: terraform fmt -check

View File

@@ -50,7 +50,7 @@ module "egress-space" {
cf_restricted_space_name = local.cf_space_name cf_restricted_space_name = local.cf_space_name
deployers = [ deployers = [
var.cf_user, var.cf_user,
"steven.reilly@gsa.gov" "carlo.costino@gsa.gov"
] ]
} }

View File

@@ -50,7 +50,6 @@ module "egress-space" {
cf_restricted_space_name = local.cf_space_name cf_restricted_space_name = local.cf_space_name
deployers = [ deployers = [
var.cf_user, var.cf_user,
"steven.reilly@gsa.gov",
"carlo.costino@gsa.gov" "carlo.costino@gsa.gov"
] ]
} }

View File

@@ -50,7 +50,6 @@ module "egress-space" {
cf_restricted_space_name = local.cf_space_name cf_restricted_space_name = local.cf_space_name
deployers = [ deployers = [
var.cf_user, var.cf_user,
"steven.reilly@gsa.gov",
"carlo.costino@gsa.gov" "carlo.costino@gsa.gov"
] ]
} }