-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7c20058
commit acd3892
Showing
8 changed files
with
134 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Add 'feature' label to any PR where the head branch name starts with `feature` or has a `feature` section in the name | ||
feature: | ||
- head-branch: ['^feature', 'feature'] | ||
|
||
# Add 'test' label to any changes within 'test' folder or any subfolders | ||
test: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- test/**.go | ||
- test/**/go.mod | ||
- modules/fixtures/** | ||
|
||
terraform: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- modules/**.tf | ||
- .tool-versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: "Pull Request Labeler" | ||
on: | ||
pull_request_target: | ||
schedule: | ||
- cron: "0 1 * * 1" | ||
jobs: | ||
labeler: | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,6 @@ on: | |
push: | ||
workflow_dispatch: | ||
|
||
# TODO: copy lint logic of eks repo | ||
|
||
jobs: | ||
lint: | ||
name: pre-commit | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
# Configuration documentation https://terraform-docs.io/user-guide/configuration/ | ||
formatter: "markdown table" # Required | ||
version: "0.17" | ||
|
||
header-from: main.tf | ||
footer-from: "" | ||
|
||
recursive: | ||
enabled: false | ||
|
||
content: |- | ||
{{ .Modules }} | ||
{{ .Resources }} | ||
{{ .Inputs }} | ||
{{ .Outputs }} | ||
sections: | ||
hide: [] | ||
show: [] | ||
|
||
output-values: | ||
enabled: false | ||
from: "" | ||
|
||
sort: | ||
enabled: true | ||
by: name | ||
|
||
settings: | ||
anchor: true | ||
color: true | ||
default: true | ||
description: true | ||
escape: true | ||
hide-empty: false | ||
html: true | ||
indent: 2 | ||
lockfile: false | ||
read-comments: true | ||
required: true | ||
sensitive: true | ||
type: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Standard ruleset documentation: https://github.com/terraform-linters/tflint-ruleset-terraform/tree/main/docs/rules | ||
|
||
rule "terraform_naming_convention" { | ||
enabled = true | ||
custom = "^[a-z][a-z0-9_]{0,62}[a-z0-9]$" | ||
module { | ||
custom = "^[a-z][a-z0-9_]{0,70}[a-z0-9]$" | ||
} | ||
} | ||
|
||
rule "terraform_typed_variables" { | ||
enabled = false | ||
} | ||
|
||
rule "terraform_unused_declarations" { | ||
enabled = false | ||
} | ||
|
||
rule "terraform_required_version" { | ||
enabled = false | ||
} | ||
|
||
rule "terraform_required_providers" { | ||
enabled = false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters