Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ variable "role_description" {
}

variable "project_paths" {
description = "List of GitLab namesapce/project names authorized to assume the role."
description = "List of GitLab namespace/project names authorized to assume the role."
type = list(string)
default = []

Expand All @@ -44,9 +44,9 @@ variable "project_paths" {
# namespace/project format used by GitLab.
condition = length([
for path in var.project_paths : 1
if length(regexall("project_path:[A-Za-z0-9_.-]+?/([A-Za-z0-9_.:/-]+|\\*)$", path)) > 0
if length(regexall("project_path:[A-Za-z0-9_.-]+?/([A-Za-z0-9_.:?*/-]+|\\*)$", path)) > 0
]) == length(var.project_paths)
error_message = "Projects must be specified in the "project_path:namespace/project" format."
error_message = "Projects must be specified in the \"project_path:namespace/project\" format."
}
}

Expand Down