-
Notifications
You must be signed in to change notification settings - Fork 52
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Instead of requiring users to setup cache and call init just do it as part of this action.
- uses: actions/cache@v3
name: Cache plugin dir
with:
path: ~/.tflint.d/plugins
key: ${{ matrix.os }}-tflint-${{ hashFiles('.tflint.hcl') }}
- uses: terraform-linters/setup-tflint@v3
name: Setup TFLint
with:
tflint_version: v0.44.1
- name: Show version
run: tflint --version
- name: Init TFLint
run: tflint --init
env:
# https://github.com/terraform-linters/tflint/blob/master/docs/user-guide/plugins.md#avoiding-rate-limiting
GITHUB_TOKEN: ${{ github.token }}Could become
- name: Setup TFLint
uses: terraform-linters/setup-tflint@v4
with:
tflint_version: v0.44.1- cache - see https://github.com/actions/setup-node/blob/main/src/cache-save.ts and similar.
- token - already provided to
terraform-linters/setup-tflintaction - version - just run it so it's visible in logs and set as output
- additional settings - allow users to disable caching, init or to provide custom cache key.
fkupchik, dkooll, Surgo, laughedelic, triwats and 2 more
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request