Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ jobs:
- name: Set up TFLint
uses: terraform-linters/setup-tflint@6e1e0642c0289bd619021bf6b34e3c08ed1e005a # v6
with:
tflint_version: v0.61.0
# v0.62.0+ ignores forbidden attestation-fetch errors during `tflint
# --init`; v0.61.0 panicked (sigstore-go nil TlogEntries) when the
# plugin attestation fetch was forbidden in restricted-token CI.
# https://github.com/terraform-linters/tflint/pull/2481
tflint_version: v0.62.1

- name: Init TFLint
env:
Expand Down
5 changes: 5 additions & 0 deletions .hooks/linters/.tflint.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ plugin "aws" {
enabled = true
version = "0.47.0"
source = "github.com/terraform-linters/tflint-ruleset-aws"
# `tflint --init` crashes (sigstore-go nil TlogEntries panic) verifying this
# plugin's GitHub artifact attestation in CI. Skip attestation verification;
# the plugin is still pinned by version and fetched over HTTPS from the
# official release. Requires tflint >= v0.62.0 (see pre-commit.yaml).
signature = "none"
}

rule "terraform_naming_convention" {
Expand Down
Loading