diff --git a/.github/workflows/terraform-plan-guard.yml b/.github/workflows/terraform-plan-guard.yml new file mode 100644 index 0000000..1fec213 --- /dev/null +++ b/.github/workflows/terraform-plan-guard.yml @@ -0,0 +1,20 @@ +--- +# Required check: Dependabot PRs pass only when every HCP Terraform plan has +# no changes, so auto-merge never applies an unreviewed change. Other PRs skip. +name: terraform-plan-guard + +on: + pull_request: + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + terraform-plan-guard: + permissions: + statuses: read # read the HCP Terraform plan statuses + uses: chorrell/workflows/.github/workflows/terraform-plan-guard.yml@v1