Skip to content

Commit 603213d

Browse files
committed
fix: change pre-commit to run on PR to main
1 parent adf4798 commit 603213d

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ name: Pre-commit check
33
# Controls when the workflow will run
44
on:
55
pull_request:
6-
branches: [master]
6+
branches: [main]
77
workflow_dispatch:
88

99
env:
1010
TF_DOCS_VERSION: v0.16.0
11-
TFSEC_VERSION: v1.27.6
12-
TFLINT_VERSION: v0.41.0
11+
TFLINT_VERSION: v0.44.1
12+
TF_VERSION: "1.3.4"
1313
permissions:
1414
contents: read
1515
jobs:
@@ -42,10 +42,5 @@ jobs:
4242
tar -zxvf terraform_docs.tar.gz terraform-docs
4343
chmod +x terraform-docs
4444
mv terraform-docs /usr/local/bin/
45-
- name: Setup tfsec
46-
run: |
47-
curl --output tfsec https://github.com/aquasecurity/tfsec/releases/download/${{env.TFSEC_VERSION}}/tfsec-linux-amd64
48-
chmod +x tfsec
49-
mv tfsec /usr/local/bin/
5045
- name: Pre-commit checks
5146
uses: pre-commit/[email protected]

0 commit comments

Comments
 (0)