Repository navigation
feat: modernise terraform workflows and actions - #132
Open
sdh100shaun wants to merge 1 commit into
Open
sdh100shaun wants to merge 1 commit into
sdh100shaun wants to merge 1 commit into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
The consumer template does not declare or forward dispatch inputs, preventing manual runs from selecting the documented Terraform/TFLint versions or enabling validation.
1 open issue
What changed in this PR
Modernises the shared Terraform workflows and composite actions used by consumer repositories, improving tool setup, changed-file checks and optional validation.
Changes:
- Adds configurable Terraform/TFLint versions, fallback lint configuration and per-directory validation.
- Improves composite-action argument handling, formatting options, workspace preservation and artifact controls.
- Corrects the weekly schedule, adds manual triggers and updates documentation.
| File | Description |
|---|---|
workflow-templates/terraform-static.yaml |
Adds manual dispatch and read-only permissions. |
workflow-templates/terraform-static.properties.json |
Updates the changed-file workflow description. |
workflow-templates/terraform-static-full.yaml |
Corrects the weekly schedule and adds manual dispatch. |
workflow-templates/terraform-static-full.properties.json |
Documents scheduling and optional validation. |
README.md |
Documents workflow inputs, validation and caller configuration. |
.github/workflows/terraform-static.yaml |
Adds tool setup, recursive lint filtering and affected-directory validation. |
.github/workflows/terraform-static-full.yaml |
Adds configurable tools, fallback lint configuration and repository-wide validation. |
.github/actions/terraform-workspace/README.md |
Documents initialization, directory selection and workspace export. |
.github/actions/terraform-workspace/action.yml |
Preserves untracked files and supports configuration directories. |
.github/actions/terraform-fmt/README.md |
Documents formatting inputs and defaults. |
.github/actions/terraform-fmt/action.yml |
Corrects formatting flag handling and quotes arguments. |
.github/actions/terraform-action/README.md |
Updates prerequisites, inputs and usage examples. |
.github/actions/terraform-action/action.yml |
Improves argument parsing, failure propagation and artifact controls. |
Review effort: Balanced
| schedule: | ||
| - cron: '* 6 * * mon' | ||
| - cron: '0 6 * * mon' | ||
| workflow_dispatch: |
sdh100shaun
requested review from
JoshCarter-ops,
Wi11Shell,
adamjgriffith,
cmarstondvsa,
dineshkmuardvsa,
hiddlaj and
matbeales
and
a balanced review from Copilot
November 27, 2026 05:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Modernise the Terraform static workflows and composite actions: install and configure Terraform and TFLint, provide a fallback TFLint config, add optional per-directory validation, correct scheduling and update the documentation. Changed-file lint findings are filtered after recursive scanning so nested Terraform files are handled correctly.
Related issue: N/A
Before submitting (or marking as "ready for review")
Validation: actionlint and shellcheck passed for the changed workflows, and shellcheck passed for the composite action scripts. Nine isolated integration checks passed using Terraform 1.9.8, TFLint 0.66.0 and mocked failure paths; the checks were not added to the repository. A consumer-repository GitHub Actions run has not been performed.