feat: module follow-ups, and L-07 reworded

- A Check met through a module is met by a value in the code: the modules
  Skill tells the author to set every input a Check depends on.
- scripts/check-terraform-modules.py reports catalogued modules with a newer
  version, and watched modules that can now be used with the pinned provider.
- L-07 no longer mentions a low-carbon location, which led to a Check about a
  region's carbon score that code cannot show. Reworded with the owner's
  approval.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-10 13:34:45 +01:00
parent 81ac135cd9
commit 135401e41b
8 changed files with 141 additions and 6 deletions

View File

@@ -203,3 +203,12 @@ def test_the_gcp_bundle_names_its_modules_skill_for_the_roles_that_run_terraform
assert all(
bundle.terraform_modules_skill not in role.skills for role in roles.values()
)
def test_the_bundle_lists_modules_to_watch_from_its_approved_namespaces():
bundle = load_provider("gcp")
assert bundle.terraform_modules_watch
for module in bundle.terraform_modules_watch:
namespace, _, provider = module.split("/")
assert namespace in bundle.terraform_module_namespaces and provider == "google"