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
| What | This provider |
|---|---|
| Vendor | GitLab |
| Key | gitlab-self-managed-variables |
| Availability | available. You can connect it today. |
| Credential we hold | gitlab-self-managed-token |
| Values read back | yes |
| Activation | immediate |
Directions
| Direction | What it does |
|---|---|
import | We read names and values out of the store into your environment. |
export | We write names and values from your environment into the store. |
Activation
immediate. The running app sees a new value at once.
Conflict policies
| Direction | Policies you can pick |
|---|---|
import | skip_existing, new_version, fail |
export | create_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.
| Field | Label | Kind | Required | What it is |
|---|---|---|---|---|
token | Access token | secret; we mask it here and seal it | yes | A 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.
| Field | Label | Kind | Required | Advanced | What it is |
|---|---|---|---|---|---|
instanceUrl | Instance URL | text | yes | no | Must be reachable from the internet for us to read and write there. |
Mapping fields
You answer these once per environment you map.
| Field | Label | Kind | Required | Advanced | What it is |
|---|---|---|---|---|---|
projectId | Project | text | yes | no | The project path from its URL, or the numeric ID under Settings → General. |
environmentScope | Environment scope | text | yes | yes | * covers every environment. Name one to keep this sync off the others. Starts at *. |
masked | Hide values in job logs | yes or no | yes | yes | On, GitLab redacts the value if a job prints it. Values with spaces cannot be masked. Starts at false. |
protected | Protected branches only | yes or no | yes | yes | On, 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.
| Permission | Directions | Blocking | Without it |
|---|---|---|---|
user:read | every direction | yes | We cannot confirm which GitLab account this token belongs to. |
variables:read | import | yes | Import cannot read variable values. |
variables:write | export | yes | Export cannot write anything. |