rogiervanstraten/terraform-affected-projects

Detects affected Terraform projects in monorepos by analyzing module dependencies and changed files

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
changed-filesManually provide a list of changed files (optional, will auto-detect via git if not provided)no""
base-refBase git reference for diff (e.g., HEAD^, commit SHA). Used for auto-detection.no""
head-refHead git reference for diff (e.g., HEAD, commit SHA). Used for auto-detection.no""
filesInclude only files matching these glob patterns (multiline). Defaults to Terraform files if not specified. Example: files: | **/*.tf **/*.tfvars no**/*.tf **/*.tfvars **/*.hcl
files-ignoreExclude files matching these glob patterns (multiline). Example: files-ignore: | **/*.md .github/** no""
resolve-rootShould projects be resolved from changes to files in the root directory?nofalse
all-projectsReturn all Terraform projects regardless of detected changed files.nofalse
project-markerThe filename used to identify a directory as a Terraform project root. Any directory containing this file (outside of module paths) is treated as a deployable project. Defaults to 'provider.tf', which is the conventional file for declaring Terraform providers. Change this if your projects use a different convention (e.g. 'versions.tf' or 'main.tf'). noprovider.tf
ignore-pathsA list of paths to ignoreno. .git node_modules
namedescription
changed-directoriesA list of changed directories