-
Notifications
You must be signed in to change notification settings - Fork 0
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
4ff78b2
commit 88d5fe5
Showing
3 changed files
with
107 additions
and
0 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,24 @@ | ||
name: Pre-commit auto-update | ||
|
||
on: | ||
# every sunday at midnight | ||
schedule: | ||
- cron: "0 0 * * 0" | ||
# on demand | ||
workflow_dispatch: | ||
|
||
permissions: | ||
actions: read | ||
checks: read | ||
contents: write #require this to write to repo | ||
pull-requests: write #require this to create PR | ||
|
||
jobs: | ||
auto-update: | ||
runs-on: | ||
- ubuntu-latest | ||
steps: | ||
- uses: SPHTech-Platform/gha-pre-commit-autoupdate@main | ||
name: Update pre-commit config automatically | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,24 @@ | ||
name: tflint aws plugin auto-update | ||
|
||
on: | ||
# every sunday at midnight | ||
schedule: | ||
- cron: "0 0 * * 0" | ||
# on demand | ||
workflow_dispatch: | ||
|
||
permissions: | ||
actions: read | ||
checks: read | ||
contents: write #require this to write to repo | ||
pull-requests: write #require this to create PR | ||
|
||
jobs: | ||
auto-update: | ||
runs-on: | ||
- ubuntu-latest | ||
steps: | ||
- uses: SPHTech-Platform/gha-tflint-aws-plugin-autoupdate@main | ||
name: Update tflint aws plugin automatically | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,59 @@ | ||
plugin "aws" { | ||
enabled = true | ||
version = "0.23.1" | ||
source = "github.com/terraform-linters/tflint-ruleset-aws" | ||
} | ||
|
||
rule "terraform_deprecated_interpolation" { | ||
enabled = true | ||
} | ||
|
||
rule "terraform_documented_outputs" { | ||
enabled = true | ||
} | ||
|
||
rule "terraform_documented_variables" { | ||
enabled = true | ||
} | ||
|
||
rule "terraform_module_pinned_source" { | ||
enabled = true | ||
} | ||
|
||
rule "terraform_typed_variables" { | ||
enabled = true | ||
} | ||
|
||
rule "terraform_required_version" { | ||
enabled = false | ||
} | ||
|
||
rule "terraform_required_providers" { | ||
enabled = true | ||
} | ||
|
||
rule "terraform_standard_module_structure" { | ||
enabled = false | ||
} | ||
|
||
rule "terraform_unused_declarations" { | ||
enabled = true | ||
} | ||
|
||
rule "terraform_unused_required_providers" { | ||
enabled = true | ||
} | ||
|
||
# rule "aws_resource_missing_tags" { | ||
# enabled = true | ||
# tags = [ | ||
# "cost-cen", | ||
# "env", | ||
# "owner", | ||
# "hello", | ||
# ] | ||
# } | ||
|
||
rule "terraform_naming_convention" { | ||
enabled = true | ||
} |