Skip to content

Commit b2720db

Browse files
JoshLuedemanCopilot
andcommitted
fix: update CI workflow and format terraform code
- TFLint: use --minimum-failure-severity=error (warnings don't fail CI) - Run terraform fmt -recursive for canonical formatting Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 2f6e368 commit b2720db

44 files changed

Lines changed: 102 additions & 102 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
GITHUB_TOKEN: ${{ github.token }}
6363

6464
- name: Run TFLint
65-
run: tflint --recursive --format compact
65+
run: tflint --recursive --format compact --minimum-failure-severity=error
6666

6767
terraform-plan:
6868
name: "📋 Plan (Validation)"

‎tests/plugin-cache/main.tf‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
provider "acme" {
2-
version = "1.4.0"
2+
version = "1.4.0"
33
server_url = "https://acme-staging-v02.api.letsencrypt.org/directory"
44
}

‎tests/workflows/pull_request_review/main.tf‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
resource "random_string" "my_string" {
2-
length = 11
2+
length = 11
33
}
44

55
output "output_string" {

‎tests/workflows/pull_request_target/main.tf‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
resource "random_string" "my_string" {
2-
length = 11
2+
length = 11
33
}
44

55
output "output_string" {

‎tests/workflows/test-apply/apply-error/main.tf‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ resource "aws_s3_bucket" "my_bucket" {
55
bucket = "hello"
66
}
77

8-
provider aws {
8+
provider "aws" {
99
region = "eu-west-2"
1010
}

‎tests/workflows/test-apply/changes/main.tf‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
resource "random_string" "my_string" {
2-
length = 11
2+
length = 11
33
}
44

55
output "output_string" {

‎tests/workflows/test-apply/deprecated_var/main.tf‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
resource "random_string" "my_string" {
2-
length = 11
2+
length = 11
33
}
44

55
output "output_string" {
66
value = "the_string"
77
}
88

99
variable "my_var" {
10-
type = string
10+
type = string
1111
default = "my_var_default"
1212
}
1313

1414
variable "my_var_from_file" {
15-
type = string
15+
type = string
1616
default = "my_var_from_file_default"
1717
}
1818

‎tests/workflows/test-apply/destroy_mode/main.tf‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
resource "random_string" "my_string" {
2-
length = 11
2+
length = 11
33
}
44

55
output "output_string" {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
resource "random_string" "my_string" {
2-
length = "ten"
2+
length = "ten"
33
}

‎tests/workflows/test-apply/long_plan/main.tf‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ resource "random_id" "b" {
99
}
1010

1111
variable "length" {
12-
type = number
12+
type = number
1313
default = 3
1414
}

0 commit comments

Comments
 (0)