forked from pytorch/test-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1002 Bytes
/
Copy pathtflint.yml
File metadata and controls
43 lines (36 loc) · 1002 Bytes
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
name: TFLint
on:
push:
branches:
- main
pull_request:
paths:
- ".github/workflows/tflint.yml"
- "terraform-aws-github-runner/**"
jobs:
tflint:
name: TFLint
runs-on: ubuntu-latest
container: node:20
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
name: Checkout source code
- uses: terraform-linters/setup-tflint@90f302c255ef959cbfb4bd10581afecdb7ece3e6 # v4.1.1
name: Setup TFLint
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tflint_version: v0.54.0
- name: Install Tofu
uses: opentofu/setup-opentofu@592200bd4b9bbf4772ace78f887668b1aee8f716 # v1.0.5
with:
terraform_version: 1.5.7
terraform_wrapper: false
- name: Show tflint version
run:
tflint --version
- name: Show tofu version
run:
tofu --version
- name: "tflint"
working-directory: terraform-aws-github-runner
run: make tflint