Skip to content

fix(iam): Fix IAM permissions #9

fix(iam): Fix IAM permissions

fix(iam): Fix IAM permissions #9

Workflow file for this run

name: pre-commit
on:
workflow_dispatch:
pull_request:
branches:
- main
- master
env:
TERRAFORM_DOCS_VERSION: "v0.16.0"
TFLINT_VERSION: "v0.36.2"
jobs:
pre-commit:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install additional pre-commit hooks
shell: bash
run: |
echo "########### Install Checkov ####################"
pip install checkov
echo "########### Install Terraform-docs #############"
wget https://github.com/terraform-docs/terraform-docs/releases/download/${{ env.TERRAFORM_DOCS_VERSION }}/terraform-docs-${{ env.TERRAFORM_DOCS_VERSION }}-linux-amd64.tar.gz
tar xvzf terraform-docs-${{ env.TERRAFORM_DOCS_VERSION }}-linux-amd64.tar.gz
mkdir -p ~/terraform-docs/bin/
install terraform-docs ~/terraform-docs/bin/
echo '~/terraform-docs/bin/' >> $GITHUB_PATH
echo "########### Install Terraform-linters ##########"
wget https://github.com/terraform-linters/tflint/releases/download/${{ env.TFLINT_VERSION }}/tflint_linux_amd64.zip
unzip tflint_linux_amd64.zip
mkdir -p ~/tflint/bin/
echo '~/tflint/bin/' >> $GITHUB_PATH
install tflint ~/tflint/bin/
~/tflint/bin/tflint --init
- name: Run pre-commit
uses: pre-commit/[email protected]