List Depot CI variables and their scoping
depot_list_ci_variablesList Depot CI variables and their scoped variants to find why a job can't see an expected variable. Values are returned, but any secret-like value is redacted with the rule that triggered.
Instructions
List Depot CI variables, their values, and their scoping.
Use this for the same "why can't my job see $FOO" question as depot_list_ci_secrets, and to check that a variable holds what you expect for a given branch or environment. Depot models a variable as one name with several variants, each scoped by repository, environment, branch, and workflow.
Unlike secrets, Depot does return variable values. Because variables are routinely misused to hold credentials, this server redacts any value whose name or content looks like a secret and reports which rule fired, so a redacted value still tells you the variable exists.
Filtering happens in this server. depot.ci.v3beta2 is a beta API and the most likely of Depot's surfaces to change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Case-insensitive substring match on the name. | |
| branch | No | Keep variants scoped to this branch. | |
| workflow | No | Keep variants scoped to this workflow. | |
| repository | No | Keep variants scoped to this repository, plus unscoped ones. | |
| environment | No | Keep variants scoped to this environment. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| returned | Yes | ||
| variables | Yes | ||
| redactedCount | Yes |