Skip to content

List the CI secrets and variables

GET
/api/v3/organizations/{organisation}/ci/values
curl --request GET \
--url 'https://dashboard.quantcdn.io/api/v3/organizations/test-org/ci/values?repo=acme%2Fweb' \
--header 'Authorization: Bearer <token>'

Returns the organisation’s CI values and, without the repo filter, every repository’s values. A variable carries its value. A secret never does. Quant gives the values to CI jobs on the organisation’s runner pools as environment variables, so a workflow uses ${{ env.NAME }} instead of ${{ secrets.NAME }}. Needs the cloud:read scope and the CI runners feature.

organisation
required
string

The organisation ID

Example
test-org
repo
string

Only the organisation’s values and this repository’s values. Lower-cased by the server.

Example
acme/web

The values

Media typeapplication/json
object
values
Array<object>
CI secret or variable
object
name
string
kind
string
Allowed values: secret var
scope
string
Allowed values: org repo
repo

Lower-case owner/name. Present when scope is repo.

string
branches

The branch rule. Absent when the value applies to every branch.

Array<string>
updatedAt
string format: date-time
updatedBy
string
value

Variables only. A secret value is never returned.

string
Example
{
"values": [
{
"name": "DEPLOY_KEY",
"kind": "secret",
"scope": "org",
"repo": "acme/web"
}
]
}

The organisation does not have CI runners