diff --git a/.github/actions/setup-opentofu/action.yml b/.github/actions/setup-opentofu-env/action.yml similarity index 100% rename from .github/actions/setup-opentofu/action.yml rename to .github/actions/setup-opentofu-env/action.yml diff --git a/.github/workflows/actions-validate.yml b/.github/workflows/actions-validate.yml index 8594251..c50de56 100644 --- a/.github/workflows/actions-validate.yml +++ b/.github/workflows/actions-validate.yml @@ -29,6 +29,9 @@ jobs: - name: Setup Terraform environment uses: ./.github/actions/setup-terraform-env + - name: Setup Terraform environment + uses: ./.github/actions/setup-opentofu-env + - name: Setup Kubernetes Environment uses: ./.github/actions/setup-k8s-env with: diff --git a/.github/workflows/terraform-aws-iac-validate-on-pr.yml b/.github/workflows/terraform-aws-iac-validate-on-pr.yml index 45dc685..75da614 100644 --- a/.github/workflows/terraform-aws-iac-validate-on-pr.yml +++ b/.github/workflows/terraform-aws-iac-validate-on-pr.yml @@ -23,17 +23,17 @@ jobs: - name: Setup environment uses: ./.github/actions/setup-env - - name: Setup Terraform environment - uses: ./.github/actions/setup-terraform-env + - name: Setup OpenTofu environment + uses: ./.github/actions/setup-opentofu-env - - name: Terraform Init and Validate + - name: OpenTofu Init and Validate env: BW_PROJECT_ID: ${{ secrets.BW_PROJECT_ID }} BW_ORGANIZATION_ID: ${{ secrets.BW_ORGANIZATION_ID }} BW_ACCESS_TOKEN: ${{ secrets.BW_ACCESS_TOKEN }} run: | cd terraform/aws-iac - sectool -f ../../sectool.json exec terraform init - sectool -f ../../sectool.json exec terraform validate - sectool -f ../../sectool.json exec terraform fmt -check - sectool -f ../../sectool.json exec terraform plan + sectool -f ../../sectool.json exec tofu init + sectool -f ../../sectool.json exec tofu validate + sectool -f ../../sectool.json exec tofu fmt -check + sectool -f ../../sectool.json exec tofu plan