INNER CODE UNIT · Python
sync_gitlab_secrets
phasehq/console · backend/api/utils/syncing/gitlab/main.py:176
def sync_gitlab_secrets(
secrets,
credential_id,
destination_url,
is_group=False,
is_masked=False,
is_protected=False,
):
"""
Sync secrets from secrets.json to the specified repository URL.
This function handles pagination when fetching existing secrets and synchronizes
the differences with secrets.json.
"""
results = {}
GITLAB_HOST, GITLAB_TOKEN = get_gitlab_credentials(credential_id)