rogiervanstraten/terraform-affected-projects
Detects affected Terraform projects in monorepos by analyzing module dependencies and changed files
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| changed-files | Manually provide a list of changed files (optional, will auto-detect via git if not provided) | no | "" |
| base-ref | Base git reference for diff (e.g., HEAD^, commit SHA). Used for auto-detection. | no | "" |
| head-ref | Head git reference for diff (e.g., HEAD, commit SHA). Used for auto-detection. | no | "" |
| files | Include only files matching these glob patterns (multiline). Defaults to Terraform files if not specified. Example: files: | **/*.tf **/*.tfvars | no | **/*.tf **/*.tfvars **/*.hcl |
| files-ignore | Exclude files matching these glob patterns (multiline). Example: files-ignore: | **/*.md .github/** | no | "" |
| resolve-root | Should projects be resolved from changes to files in the root directory? | no | false |
| all-projects | Return all Terraform projects regardless of detected changed files. | no | false |
| project-marker | The 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'). | no | provider.tf |
| ignore-paths | A list of paths to ignore | no | . .git node_modules |
Outputs
| name | description |
|---|---|
| changed-directories | A list of changed directories |