From fda3d4b092b600866bb12f25c8048c5a050a6e54 Mon Sep 17 00:00:00 2001 From: Eskil Uhlving Larsen <7443949+picccard@users.noreply.github.com> Date: Thu, 15 Aug 2024 14:15:20 +0200 Subject: [PATCH 1/2] Updated linter-rules in bicepconfig.json --- infra-as-code/bicep/bicepconfig.json | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/infra-as-code/bicep/bicepconfig.json b/infra-as-code/bicep/bicepconfig.json index d43536e6c..34b988ca5 100644 --- a/infra-as-code/bicep/bicepconfig.json +++ b/infra-as-code/bicep/bicepconfig.json @@ -13,6 +13,12 @@ "decompiler-cleanup": { "level": "error" }, + "explicit-values-for-loc-params": { + "level": "off" + }, + "max-asserts": { + "level": "warning" + }, "max-outputs": { "level": "error" }, @@ -25,6 +31,15 @@ "max-variables": { "level": "error" }, + "nested-deployment-template-scoping": { + "level": "error" + }, + "no-conflicting-metadata" : { + "level": "warning" + }, + "no-deployments-resources" : { + "level": "warning" + }, "no-hardcoded-env-urls": { "level": "error" }, @@ -80,12 +95,21 @@ "level": "warning", "maxAllowedAgeInDays": 730 }, + "use-recent-module-versions": { + "level": "warning" + }, "use-resource-id-functions": { "level": "error" }, "use-resource-symbol-reference": { "level": "error" }, + "use-safe-access": { + "level": "warning" + }, + "use-secure-value-for-secure-inputs": { + "level": "error" + }, "use-stable-resource-identifiers": { "level": "error" }, From b1d7e45ca02bd87cf0cb2e739a6bbd7c797fa3d8 Mon Sep 17 00:00:00 2001 From: Zach Trocinski Date: Mon, 19 Aug 2024 12:34:35 -0500 Subject: [PATCH 2/2] Change no-deployment-resources to error as related to security --- infra-as-code/bicep/bicepconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra-as-code/bicep/bicepconfig.json b/infra-as-code/bicep/bicepconfig.json index 34b988ca5..b4dccd4de 100644 --- a/infra-as-code/bicep/bicepconfig.json +++ b/infra-as-code/bicep/bicepconfig.json @@ -38,7 +38,7 @@ "level": "warning" }, "no-deployments-resources" : { - "level": "warning" + "level": "error" }, "no-hardcoded-env-urls": { "level": "error"