Getting started with Pipery Terraform CI
Infrastructure repositories deserve the same level of repeatability as application repos. pipery-dev/pipery-terraform-ci gives Terraform projects a shared CI pipeline that validates code, checks risk earlier, and leaves behind a structured log you can inspect later.
Minimal workflow#
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
ci:
uses: pipery-dev/pipery-terraform-ci@v1
with:
project_path: .
secrets: inheritWhat it runs#
The action covers:
- tfsec for SAST
- dependency scanning
- tflint
terraform validateterraform plan- versioning
- release handling
Useful inputs#
terraform_version: pin the CLI version used by the repobackend_config: provide backend settings cleanlyvar_file: point at the right tfvars fileworking_directory: useful when the Terraform root is not the repo root
Why this helps teams#
Terraform workflows often grow hidden complexity around backends, environments, validation order, and plan behavior. A shared action makes the happy path repeatable across repos, while Pipery gives you the execution detail to understand a failed validate or plan run without digging through a long shell script.
If your team is trying to standardize infrastructure checks before merge, this is a strong first action to adopt.
Source and docs: pipery-terraform-ci.
