Terraform workflow to be reused in your project.
- https://github.com/marketplace/actions/hashicorp-setup-terraform
- https://github.com/marketplace/actions/run-tfsec-pr-commenter
Disclaimer: The tfsec commenter will run ONLY in pull requests
tf_version
: Terraform version (type: string, default: 1.0.0)]tf_wrapper
: If will use the Terraform wrapper (type: boolean, default:false
)token
: Github secret token, available by default
In your caller workflow, first set your trigger (see the docs)
Calling the workflow with all the default inputs:
...
jobs:
my-terraform-workflow:
uses: edsoncelio/terraform-default-workflow/.github/workflows/terraform.yml@v1
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
TODO
Distributed under the MIT License. See LICENSE
for more information.