-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CES-155] Updated static_analysis.yaml with new action and pre-commit…
… updated (#1225)
- Loading branch information
Showing
41 changed files
with
552 additions
and
152 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
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 |
---|---|---|
|
@@ -42,3 +42,6 @@ __TMP | |
.metals/ | ||
__azurite_* | ||
/.idea | ||
|
||
**/modules/**/.terraform.lock.hcl | ||
**/_modules/**/.terraform.lock.hcl |
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 |
---|---|---|
@@ -1,18 +1,40 @@ | ||
repos: | ||
- repo: https://github.com/pagopa/dx | ||
rev: c7410ed50d211e756cd4bbb8152e1b275b4485b4 | ||
hooks: | ||
- id: terraform_providers_lock_staged | ||
|
||
- repo: https://github.com/antonbabenko/pre-commit-terraform | ||
rev: v1.83.0 | ||
rev: v1.96.1 | ||
hooks: | ||
- id: terraform_tflint | ||
args: | ||
- --args=--disable-rule terraform_required_version | ||
- --args=--disable-rule terraform_required_providers | ||
- --args=--disable-rule terraform_unused_declarations | ||
- --args=--disable-rule terraform_deprecated_interpolation | ||
- --args=--disable-rule terraform_deprecated_index | ||
- --args=--disable-rule terraform_typed_variables | ||
- --args=--disable-rule terraform_map_duplicate_keys | ||
- --args=--disable-rule terraform_module_pinned_source | ||
- --args=--config=__GIT_WORKING_DIR__/.tflint.hcl | ||
- id: terraform_fmt | ||
- id: terraform_docs | ||
name: terraform_docs on resources | ||
args: | ||
- --args=--hide providers | ||
- id: terraform_tfsec | ||
args: | ||
- --args=--exclude-downloaded-modules | ||
- --hook-config=--create-file-if-not-exist=true | ||
exclude: | | ||
(?x)^( | ||
src\/(?:.*\/)?(?:_?modules)\/.* | ||
)$ | ||
- id: terraform_validate | ||
exclude: '(\/_?modules\/.*)' | ||
args: | ||
- --tf-init-args=-lockfile=readonly | ||
- --args=-json | ||
- --args=-no-color | ||
- --hook-config=--retry-once-with-cleanup=true | ||
- id: terraform_trivy | ||
files: ^src/ | ||
args: | ||
- --args=--skip-dirs="**/.terraform" | ||
- --args=--ignorefile=__GIT_WORKING_DIR__/.trivyignore |
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,18 @@ | ||
config { | ||
format = "default" | ||
call_module_type = "local" | ||
force = false | ||
disabled_by_default = false | ||
} | ||
|
||
plugin "terraform" { | ||
enabled = true | ||
preset = "recommended" | ||
} | ||
|
||
# install the plugin by running 'tflint --init' | ||
plugin "azurerm" { | ||
enabled = true | ||
version = "0.27.0" | ||
source = "github.com/terraform-linters/tflint-ruleset-azurerm" | ||
} |
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,19 @@ | ||
# https://avd.aquasec.com/misconfig/azure/ | ||
|
||
# Github repository shouldn’t be public. | ||
AVD-GIT-0001 | ||
|
||
# GitHub branch protection does not require signed commits. | ||
AVD-GIT-0004 | ||
|
||
# The minimum TLS version for Storage Accounts should be TLS1_2 | ||
AVD-AZU-0011 | ||
|
||
# LOW: Secret should have an expiry date specified | ||
AVD-AZU-0017 | ||
|
||
# LOW: Secret does not have a content-type specified | ||
AVD-AZU-0015 | ||
|
||
# CRITICAL: Vault network ACL does not block access by default | ||
AVD-AZU-0013 |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.