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

View File

@@ -339,8 +339,8 @@ export const GitLabSyncFns = {
variable: {
value,
environment_scope: targetEnvironment,
protected: destinationConfig.shouldProtectSecrets ?? existingVariable.protected,
masked: existingVariable.masked || destinationConfig.shouldMaskSecrets
protected: destinationConfig.shouldProtectSecrets,
masked: destinationConfig.shouldMaskSecrets || existingVariable.hidden
},
targetEnvironment
});

View File

@@ -18,6 +18,7 @@ export type TGitLabVariable = {
protected: boolean;
masked: boolean;
environmentScope?: string;
hidden?: boolean;
};
export type TGitLabVariableCreate = {