feat(secret-sync): fix update masked_and_hidden field to not be sent unless it's true

This commit is contained in:
carlosmonastyrski
2025-06-25 13:17:41 -03:00
parent 0366e58a5b
commit 70ea761375
2 changed files with 3 additions and 3 deletions

View File

@@ -156,7 +156,7 @@ const createGitLabVariable = async ({
protected: payload.protected,
masked: payload.masked,
// @ts-expect-error type
masked_and_hidden: payload.masked_and_hidden,
...(payload.masked_and_hidden && { masked_and_hidden: payload.masked_and_hidden }),
raw: false
});
}

View File

@@ -44,8 +44,8 @@ Infisical supports two methods for connecting to GitLab: **OAuth** and **Access
Back in your Infisical instance, add two new environment variables for the credentials of your GitLab OAuth application:
- `CLIENT_ID_GITLAB`: The **Application ID** of your GitLab OAuth application.
- `CLIENT_SECRET_GITLAB`: The **Secret** of your GitLab OAuth application.
- `INF_APP_CONNECTION_GITLAB_OAUTH_CLIENT_ID`: The **Application ID** of your GitLab OAuth application.
- `INF_APP_CONNECTION_GITLAB_OAUTH_CLIENT_SECRET`: The **Secret** of your GitLab OAuth application.
Once added, restart your Infisical instance and use the GitLab Connection.
</Step>