-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (33 loc) · 1.01 KB
/
pre-commit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Pre-commit
on:
push:
branches:
- main
- 0.2.x
pull_request:
branches:
- main
- 0.2.x
jobs:
pre-commit:
name: Pre-commit checks
runs-on: ubuntu-latest
steps:
- name: Configure Terraform cache dir
run: |
mkdir -p "$HOME/.terraform.d/plugin-cache"
echo 'plugin_cache_dir = "$HOME/.terraform.d/plugin-cache"' > "$HOME/.terraformrc"
- name: Install tfsec for static analysis of Terraform code to spot potential misconfigurations
run: |
curl -s https://raw.githubusercontent.com/aquasecurity/tfsec/master/scripts/install_linux.sh | bash
- name: Install Terraform Linter
uses: terraform-linters/setup-tflint@v3
- name: Install helm-docs
uses: envoy/[email protected]
with:
version: 1.7.0
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v3
- uses: pre-commit/[email protected]