Skip to content

Prepare for release of v4.0.0. #30

Prepare for release of v4.0.0.

Prepare for release of v4.0.0. #30

Workflow file for this run

name: Validate Module
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
validate:
name: Validate Terraform Module
runs-on: ubuntu-24.04
strategy:
matrix:
tf_version:
- docker.io/hashicorp/terraform:1.7
- docker.io/hashicorp/terraform:latest
- ghcr.io/opentofu/opentofu:latest
container:
image: ${{ matrix.tf_version }}
steps:
- name: git checkout
uses: actions/checkout@v4
- name: Prepare environment
shell: bash
run: |
tf_exe="$(command -v 'tofu' || command -v 'terraform')"
echo "TF_EXE="${tf_exe}" >> "${GITHUB_ENV}"
- name: Initialize Terraform
run: |
"${TF_EXE}" init -backend=false
- name: Validate Terraform Module Syntax
run: |
"${TF_EXE}" validate
#security_scanner:
# name: Run tfsec Security Scanner
# runs-on: ubuntu-20.04
# container:
# image: docker.io/liamg/tfsec:v0.25.0
# steps:
# - name: git checkout
# uses: actions/checkout@v2
# - name: Run security scanner
# run: tfsec .