mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 08:14:06 +00:00
feat(secret-sync): rework GitLab secret-sync to add group variables
This commit is contained in:
@@ -3,7 +3,7 @@ import { SecretSync } from "@app/hooks/api/secretSyncs";
|
||||
import { TRootSecretSync } from "@app/hooks/api/secretSyncs/types/root-sync";
|
||||
|
||||
export enum GitlabSyncScope {
|
||||
Individual = "individual",
|
||||
Project = "project",
|
||||
Group = "group"
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ export type TGitlabSync = TRootSecretSync & {
|
||||
destination: SecretSync.GitLab;
|
||||
destinationConfig:
|
||||
| {
|
||||
scope: GitlabSyncScope.Individual;
|
||||
scope: GitlabSyncScope.Project;
|
||||
projectId: string;
|
||||
projectName: string;
|
||||
targetEnvironment?: string;
|
||||
@@ -22,8 +22,7 @@ export type TGitlabSync = TRootSecretSync & {
|
||||
| {
|
||||
scope: GitlabSyncScope.Group;
|
||||
groupId: string;
|
||||
projectId: string;
|
||||
projectName: string;
|
||||
groupName: string;
|
||||
targetEnvironment?: string;
|
||||
shouldProtectSecrets?: boolean;
|
||||
shouldMaskSecrets?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user