feat(secret-sync): improve update logic and add warning on docs for gitlab limitation on hidden variables

This commit is contained in:
carlosmonastyrski
2025-06-25 13:51:38 -03:00
parent c95680b95d
commit c4c0f86598
2 changed files with 3 additions and 2 deletions
@@ -339,8 +339,8 @@ export const GitLabSyncFns = {
variable: { variable: {
value, value,
environment_scope: targetEnvironment, environment_scope: targetEnvironment,
protected: destinationConfig.shouldProtectSecrets ?? existingVariable.protected, protected: destinationConfig.shouldProtectSecrets,
masked: existingVariable.masked || destinationConfig.shouldMaskSecrets masked: destinationConfig.shouldMaskSecrets || existingVariable.hidden
}, },
targetEnvironment targetEnvironment
}); });
@@ -18,6 +18,7 @@ export type TGitLabVariable = {
protected: boolean; protected: boolean;
masked: boolean; masked: boolean;
environmentScope?: string; environmentScope?: string;
hidden?: boolean;
}; };
export type TGitLabVariableCreate = { export type TGitLabVariableCreate = {