From 7652d9c5baa7f9d444bac6120939ef1308a3b920 Mon Sep 17 00:00:00 2001 From: Anton <171003811+Anton0C@users.noreply.github.com> Date: Fri, 1 Aug 2025 11:05:24 +0200 Subject: [PATCH] Allow to set gitlab_project_variable properties --- main.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.tf b/main.tf index 76b2252..b9b5dfb 100644 --- a/main.tf +++ b/main.tf @@ -689,9 +689,9 @@ resource "gitlab_project_variable" "access_token_this" { project = each.value.project_id key = each.value.variable_name value = sensitive(gitlab_project_access_token.this[each.key].token) - protected = true - masked = true - environment_scope = "*" + protected = lookup(each.value, "protected", true) + masked = lookup(each.value, "masked", true) + environment_scope = lookup(each.value, "environment_scope", "*") description = "Generated access token for ${gitlab_project_access_token.this[each.key].name}" }