Skip to content

TerraApprove

Actions
Validate the Terraform plan against the code base and output if approval is needed
v0.0.8
LatestPre-release
Star (1)

TerraApprove action

The TerraApprove action provides an easy way to use TerraApprove in your GitHub Actions workflow.

Usage

The action needs 2 options to be set:

  • tf_code_dir: the directory where the Terraform code is located
  • tf_plan_json_file: the path to the Terraform plan JSON file
...
steps:
  - name: TerraApprove
    id: terraapprove
    uses: giovannibaratta/[email protected]
    with:
      tf_code_dir: example-01
      tf_plan_json_file: example-01/plan.json

  - name: TerraApprove output
    run: |
      echo "Approval required: ${{ steps.terraapprove.outputs.approval_required }}"

Additionally mode can be set to change the beahviour of the validator.

Examples

A repository is avaiable here with a complete examples.

TerraApprove is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Validate the Terraform plan against the code base and output if approval is needed
v0.0.8
LatestPre-release

TerraApprove is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.