This repository has been archived by the owner on Aug 2, 2024. It is now read-only.
Add th-secret-scan.yml GitHub Action #45
This file contains 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
name: Terraform CI | |
on: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
jobs: | |
validate: | |
name: Validate | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v1 | |
- name: Run a Terraform init | |
uses: docker://hashicorp/terraform:0.12.20 | |
with: | |
entrypoint: terraform | |
args: init | |
- name: Run a Terraform fmt | |
uses: docker://hashicorp/terraform:0.12.20 | |
with: | |
entrypoint: terraform | |
args: fmt -check=true | |
- name: Run a Terraform validate | |
uses: docker://hashicorp/terraform:0.12.20 | |
env: | |
AWS_REGION: eu-west-1 | |
with: | |
entrypoint: terraform | |
args: validate |