-
Notifications
You must be signed in to change notification settings - Fork 3
57 lines (47 loc) · 1.29 KB
/
tflint.yaml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: TFLint
on:
push:
paths:
- 'terraform/**/*.tf'
# permissions:
# contents: write
# pull-requests: write
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Aqua
uses: aquaproj/[email protected]
with:
aqua_version: v2.28.0
working_directory: ""
aqua_opts: ""
env:
AQUA_CONFIG: aqua.yaml
AQUA_LOG_LEVEL: debug
- name: Install TFLint with Aqua
run: |
aqua init
aqua i
working-directory: ./terraform
- name: Run TFLint via Makefile
run: |
make lint-ci
working-directory: ./terraform
continue-on-error: true
- name: Run Trivy via Makefile
run: |
make scan
working-directory: ./terraform
continue-on-error: true
# - name: Install reviewdog
# uses: reviewdog/action-setup@v1
# with:
# reviewdog_version: latest
# - name: Run reviewdog
# run: |
# cat terraform/tflint_report.json | reviewdog -f=tflint -name="tflint" -reporter=github-pr-review -filter-mode=diff_context -level=error
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}