Penv Cloud
Start free
Docs
Reference

GitLab Self-Managed CI/CD variables

Sync CI/CD variables with a project on your own GitLab instance.

Sync CI/CD variables with a project on your own GitLab instance.

Connection

WhatThis provider
VendorGitLab
Keygitlab-self-managed-variables
Availabilityavailable. You can connect it today.
Credential we holdgitlab-self-managed-token
Values read backyes
Activationimmediate

Directions

DirectionWhat it does
importWe read names and values out of the store into your environment.
exportWe write names and values from your environment into the store.

Activation

immediate. The running app sees a new value at once.

Conflict policies

DirectionPolicies you can pick
importskip_existing, new_version, fail
exportcreate_only, overwrite, overwrite_and_prune

How syncs work says what each one does.

Connect

Paste a credential from the vendor. We seal it and never show it again.

FieldLabelKindRequiredWhat it is
tokenAccess tokensecret; we mask it here and seal ityesA personal access token on your instance with the api scope.

Connection fields

You set these when you connect. Every mapping on the connection shares them.

FieldLabelKindRequiredAdvancedWhat it is
instanceUrlInstance URLtextyesnoMust be reachable from the internet for us to read and write there.

Mapping fields

You answer these once per environment you map.

FieldLabelKindRequiredAdvancedWhat it is
projectIdProjecttextyesnoThe project path from its URL, or the numeric ID under Settings → General.
environmentScopeEnvironment scopetextyesyes* covers every environment. Name one to keep this sync off the others. Starts at *.
maskedHide values in job logsyes or noyesyesOn, GitLab redacts the value if a job prints it. Values with spaces cannot be masked. Starts at false.
protectedProtected branches onlyyes or noyesyesOn, only jobs on protected branches and tags can read it. This sync never turns it off. Starts at false.

Required permissions

We probe for these when we verify the connection.

PermissionDirectionsBlockingWithout it
user:readevery directionyesWe cannot confirm which GitLab account this token belongs to.
variables:readimportyesImport cannot read variable values.
variables:writeexportyesExport cannot write anything.