-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (38 loc) · 1.1 KB
/
terraform-lint.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
---
'on':
workflow_call:
inputs:
jobs_run_on:
default: ubuntu-latest
description: The runner group on which jobs will run.
required: false
type: string
tflint_config_path:
default: '.tflint.hcl'
description: The relative path to the TFlint configuration file.
required: false
type: string
timeout_minutes:
description: The maximum time (in minutes) for a job to run.
default: 5
required: false
type: number
working_directory:
description: The working directory where all jobs should be executed.
default: '.'
required: false
type: string
jobs:
linting:
defaults:
run:
working-directory: ${{ inputs.working_directory }}
runs-on: ${{ inputs.jobs_run_on }}
steps:
- name: 'Checkout repo'
uses: 'actions/checkout@v4'
- name: 'Setup TFLint'
uses: 'terraform-linters/setup-tflint@v4'
- name: 'Run TFLint'
run: tflint -c ${{ inputs.tflint_config_path }}
timeout-minutes: ${{ inputs.timeout_minutes }}