new features #18
Workflow file for this run
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" | |
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] |