Skip to content

giovannibaratta/terraapprove-github-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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/terraapprove-github-action@v0.0.8
    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.

About

GitHub action to use TerraApprove in your GitHub workflows.

Resources

License

Stars

Watchers

Forks