diff --git a/for-test/foo/.terraform.lock.hcl b/for-test/foo/.terraform.lock.hcl new file mode 100644 index 000000000..4a6dd6d41 --- /dev/null +++ b/for-test/foo/.terraform.lock.hcl @@ -0,0 +1,24 @@ +# This file is maintained automatically by "terraform init". +# Manual edits may be lost in future updates. + +provider "registry.terraform.io/hashicorp/null" { + version = "3.2.2" + constraints = "3.2.2" + hashes = [ + "h1:m467k2tZ9cdFFgHW7LPBK2GLPH43LC6wc3ppxr8yvoE=", + "h1:vWAsYRd7MjYr3adj8BVKRohVfHpWQdvkIwUQ2Jf5FVM=", + "h1:zT1ZbegaAYHwQa+QwIFugArWikRJI9dqohj8xb0GY88=", + "zh:3248aae6a2198f3ec8394218d05bd5e42be59f43a3a7c0b71c66ec0df08b69e7", + "zh:32b1aaa1c3013d33c245493f4a65465eab9436b454d250102729321a44c8ab9a", + "zh:38eff7e470acb48f66380a73a5c7cdd76cc9b9c9ba9a7249c7991488abe22fe3", + "zh:4c2f1faee67af104f5f9e711c4574ff4d298afaa8a420680b0cb55d7bbc65606", + "zh:544b33b757c0b954dbb87db83a5ad921edd61f02f1dc86c6186a5ea86465b546", + "zh:696cf785090e1e8cf1587499516b0494f47413b43cb99877ad97f5d0de3dc539", + "zh:6e301f34757b5d265ae44467d95306d61bef5e41930be1365f5a8dcf80f59452", + "zh:78d5eefdd9e494defcb3c68d282b8f96630502cac21d1ea161f53cfe9bb483b3", + "zh:913a929070c819e59e94bb37a2a253c228f83921136ff4a7aa1a178c7cce5422", + "zh:aa9015926cd152425dbf86d1abdbc74bfe0e1ba3d26b3db35051d7b9ca9f72ae", + "zh:bb04798b016e1e1d49bcc76d62c53b56c88c63d6f2dfe38821afef17c416a0e1", + "zh:c23084e1b23577de22603cff752e59128d83cfecc2e6819edadd8cf7a10af11e", + ] +} diff --git a/for-test/foo/.tflint.hcl b/for-test/foo/.tflint.hcl new file mode 100644 index 000000000..5fd4b21af --- /dev/null +++ b/for-test/foo/.tflint.hcl @@ -0,0 +1,40 @@ +# https://github.com/terraform-linters/tflint/tree/master/docs/rules +rule "terraform_deprecated_index" { + enabled = true +} + +rule "terraform_unused_declarations" { + enabled = true +} + +rule "terraform_comment_syntax" { + enabled = true +} + +rule "terraform_documented_outputs" { + enabled = true +} + +rule "terraform_documented_variables" { + enabled = true +} + +rule "terraform_typed_variables" { + enabled = true +} + +rule "terraform_naming_convention" { + enabled = true +} + +rule "terraform_required_version" { + enabled = true +} + +rule "terraform_required_providers" { + enabled = true +} + +rule "terraform_standard_module_structure" { + enabled = false +} diff --git a/for-test/foo/aqua/aqua-checksums.json b/for-test/foo/aqua/aqua-checksums.json new file mode 100644 index 000000000..a78418a0c --- /dev/null +++ b/for-test/foo/aqua/aqua-checksums.json @@ -0,0 +1,79 @@ +{ + "checksums": [ + { + "id": "github_release/github.com/aquasecurity/trivy/v0.46.0/trivy_0.46.0_Linux-64bit.tar.gz", + "checksum": "D26B6A5B4445C4A7F99E104A8C47579AEC150023FB927D55F8622E760C171AF2", + "algorithm": "sha256" + }, + { + "id": "github_release/github.com/aquasecurity/trivy/v0.46.0/trivy_0.46.0_Linux-ARM64.tar.gz", + "checksum": "6AF0383E99B579203BBA3286C780BEBFC49A1EFB66739BC6FEFA3B0A779499B4", + "algorithm": "sha256" + }, + { + "id": "github_release/github.com/aquasecurity/trivy/v0.46.0/trivy_0.46.0_macOS-64bit.tar.gz", + "checksum": "C2E498941FE8914C3B364AE982ABB1DEA362AF0DEF7E6F15175166B3CFFF5947", + "algorithm": "sha256" + }, + { + "id": "github_release/github.com/aquasecurity/trivy/v0.46.0/trivy_0.46.0_macOS-ARM64.tar.gz", + "checksum": "B5A8F853A132B18BFF6ABA3E20604F81DE724DEFCCD188B53FFF1ED55BE00918", + "algorithm": "sha256" + }, + { + "id": "github_release/github.com/terraform-linters/tflint/v0.48.0/tflint_darwin_amd64.zip", + "checksum": "8F491F42A07152B27D7C3599FAF24EB839A202F5C58EF735740303AE3CAD51FA", + "algorithm": "sha256" + }, + { + "id": "github_release/github.com/terraform-linters/tflint/v0.48.0/tflint_darwin_arm64.zip", + "checksum": "88BBA0BD1CA4012F836D14093E5D18CF0D6633C7FEA82404382FDA70C99753A0", + "algorithm": "sha256" + }, + { + "id": "github_release/github.com/terraform-linters/tflint/v0.48.0/tflint_linux_amd64.zip", + "checksum": "13C7947963C4DC4F0AA9E0CB7A0854367A425162A508BC7517D1CBCBEF822F3C", + "algorithm": "sha256" + }, + { + "id": "github_release/github.com/terraform-linters/tflint/v0.48.0/tflint_linux_arm64.zip", + "checksum": "EF4E07EF95E5F2779DF0ED43E62364855DAFB92B938CF62F08C64016DE2756B0", + "algorithm": "sha256" + }, + { + "id": "github_release/github.com/terraform-linters/tflint/v0.48.0/tflint_windows_amd64.zip", + "checksum": "1EFAB7EA19E8ADB73CAE770E5EDABAE44A5CEBD63BAF203A5D3270948DB55648", + "algorithm": "sha256" + }, + { + "id": "http/releases.hashicorp.com/terraform/1.6.2/terraform_1.6.2_darwin_amd64.zip", + "checksum": "361FFD98F0CDEE631CB1475688471C5FB8F41BD6A4D8D300F29DF384C82D6316", + "algorithm": "sha256" + }, + { + "id": "http/releases.hashicorp.com/terraform/1.6.2/terraform_1.6.2_darwin_arm64.zip", + "checksum": "87345E9F2932C29C8D00C5CA9E0361FADA18ACCC2573FD66883B3ADB40949BE8", + "algorithm": "sha256" + }, + { + "id": "http/releases.hashicorp.com/terraform/1.6.2/terraform_1.6.2_linux_amd64.zip", + "checksum": "107142241B12FF78B6EB9C419757D406A8714704F7928750A662BA19DE055E98", + "algorithm": "sha256" + }, + { + "id": "http/releases.hashicorp.com/terraform/1.6.2/terraform_1.6.2_linux_arm64.zip", + "checksum": "AC70F54865D1C0A945D3EFA221074E32A3818C666A412148EE5F9F0B14FD330D", + "algorithm": "sha256" + }, + { + "id": "http/releases.hashicorp.com/terraform/1.6.2/terraform_1.6.2_windows_amd64.zip", + "checksum": "3987AACB78C1B05D94E52AE2C9EBD1536E7F012590D2D0874525B6DC4448062E", + "algorithm": "sha256" + }, + { + "id": "registries/github_content/github.com/aquaproj/aqua-registry/v4.92.2/registry.yaml", + "checksum": "3DE8A454E1D3FFC37112534057FD39F78E2F2C15ED048AF14F7340BB6D4DEFF52D6C3368DC7CD3CA27B8E7EAC3ED42042EEF299CC825B1929993EFB8195C4E0E", + "algorithm": "sha512" + } + ] +} diff --git a/for-test/foo/aqua/aqua.yaml b/for-test/foo/aqua/aqua.yaml new file mode 100644 index 000000000..624c541ee --- /dev/null +++ b/for-test/foo/aqua/aqua.yaml @@ -0,0 +1,13 @@ +--- +# aqua - Declarative CLI Version Manager +# https://aquaproj.github.io/ +checksum: + enabled: true + require_checksum: true +# supported_envs: +# - all +registries: +- type: standard + ref: v4.92.2 # renovate: depName=aquaproj/aqua-registry +packages: + - import: imports/*.yaml diff --git a/for-test/foo/aqua/imports/terraform.yaml b/for-test/foo/aqua/imports/terraform.yaml new file mode 100644 index 000000000..324efe6e3 --- /dev/null +++ b/for-test/foo/aqua/imports/terraform.yaml @@ -0,0 +1,2 @@ +packages: + - name: hashicorp/terraform@v1.6.2 diff --git a/for-test/foo/aqua/imports/tflint.yaml b/for-test/foo/aqua/imports/tflint.yaml new file mode 100644 index 000000000..e55003d66 --- /dev/null +++ b/for-test/foo/aqua/imports/tflint.yaml @@ -0,0 +1,2 @@ +packages: + - name: terraform-linters/tflint@v0.48.0 diff --git a/for-test/foo/aqua/imports/trivy.yaml b/for-test/foo/aqua/imports/trivy.yaml new file mode 100644 index 000000000..23c58a5e7 --- /dev/null +++ b/for-test/foo/aqua/imports/trivy.yaml @@ -0,0 +1,2 @@ +packages: + - name: aquasecurity/trivy@v0.46.0 diff --git a/for-test/foo/terraform.tf b/for-test/foo/terraform.tf new file mode 100644 index 000000000..1d911f951 --- /dev/null +++ b/for-test/foo/terraform.tf @@ -0,0 +1,12 @@ +terraform { + required_version = ">= 1.0" +} + +terraform { + required_providers { + null = { + source = "hashicorp/null" + version = "3.2.2" + } + } +} diff --git a/for-test/foo/tfaction.yaml b/for-test/foo/tfaction.yaml new file mode 100644 index 000000000..0967ef424 --- /dev/null +++ b/for-test/foo/tfaction.yaml @@ -0,0 +1 @@ +{}