From 815728aca6c38027177836116984ba8f7670df0d Mon Sep 17 00:00:00 2001 From: Ludovico Magnocavallo Date: Thu, 15 Jun 2023 18:08:57 +0200 Subject: [PATCH] fix repo names check (#1443) --- fast/extras/0-cicd-github/variables.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fast/extras/0-cicd-github/variables.tf b/fast/extras/0-cicd-github/variables.tf index 15b2d660..9f4ee1c0 100644 --- a/fast/extras/0-cicd-github/variables.tf +++ b/fast/extras/0-cicd-github/variables.tf @@ -101,7 +101,7 @@ variable "repositories" { validation { condition = alltrue([ for k, v in var.repositories : - try(regex("^[a-zA-Z0-9_.]+$", k), null) != null + try(regex("^[a-zA-Z0-9-_.]+$", k), null) != null ]) error_message = "Repository names must match '^[a-zA-Z0-9_.]+$'." }