Skip to content

update precommit config #28

update precommit config

update precommit config #28

Workflow file for this run

---
name: "Terraform"
on:
pull_request:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
terraform-fmt:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@master
- name: Terraform Format
uses: hashicorp/terraform-github-actions@master
with:
tf_actions_version: latest
tf_actions_subcommand: fmt
tf_actions_comment: true
terraform-docs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}
continue-on-error: true # added this to prevent a PR from a remote fork failing the workflow
- name: Update module usage docs and push any changes back to PR branch
uses: Dirrk/[email protected]
with:
tf_docs_args: "--sort-inputs-by-required"
tf_docs_git_commit_message: "terraform-docs: Update module usage"
tf_docs_git_push: "true"
tf_docs_output_file: README.md
tf_docs_output_method: inject
tf_docs_find_dir: .
continue-on-error: true # added this to prevent a PR from a remote fork failing the workflow
tfsec:
name: tfsec
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@master
- name: Terraform security scan
uses: triat/[email protected]