Skip to content

Commit 7b530b5

Browse files
committed
chore: upated tflint and added tfsec action
1 parent 01bdaf1 commit 7b530b5

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.github/workflows/workflow.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
branches:
99
- master
1010

11+
permissions:
12+
contents: read
13+
pull-requests: write
14+
1115
jobs:
1216
check:
1317
runs-on: ubuntu-latest
@@ -26,9 +30,13 @@ jobs:
2630
with:
2731
github_token: ${{ secrets.GITHUB_TOKEN }}
2832

29-
- name: setup tools
33+
- name: check
3034
run: |
31-
curl -L "$(curl -s https://api.github.com/repos/aquasecurity/tfsec/releases/latest | grep -m 1 -o -E "https://.+?tfsec-linux-amd64")" > tfsec && chmod +x tfsec && sudo mv tfsec /usr/bin/
3235
tflint --init
36+
make init fmt validate tflint
3337
34-
- run: make
38+
- name: tfsec
39+
uses: aquasecurity/tfsec-pr-commenter-action@v1.2.0
40+
with:
41+
github_token: ${{ secrets.GITHUB_TOKEN }}
42+
additional_args: --exclude-downloaded-modules

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.72.1
3+
rev: v1.75.0
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_validate

.tflint.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ config {
44

55
plugin "aws" {
66
enabled = true
7-
version = "0.14.0"
7+
version = "0.17.1"
88
source = "github.com/terraform-linters/tflint-ruleset-aws"
99
}

0 commit comments

Comments
 (0)