List the CI secrets and variables
const url = 'https://dashboard.quantcdn.io/api/v3/organizations/test-org/ci/values?repo=acme%2Fweb';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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. A workflow reads a secret as ${{ secrets.NAME }} and a variable as ${{ vars.NAME }}. Needs the cloud:read scope and the CI runners feature.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The organisation ID
Example
test-orgQuery Parameters
Section titled “Query Parameters”Only the organisation’s values and this repository’s values. Lower-cased by the server.
Example
acme/webResponses
Section titled “Responses”The values
object
object
Lower-case owner/name. Present when scope is repo.
The branch rule. Absent when the value applies to every branch.
Variables only. A secret value is never returned.
Present on a repository value that jobs do not get. repo_identity_unproven: the value was saved before values were bound to repository IDs, and its repository was created after the value was last saved. Save the value again to fix this.
When the value was first withheld. Present with withheldReason.
Example
{ "values": [ { "name": "DEPLOY_KEY", "kind": "secret", "scope": "org", "repo": "acme/web", "withheldReason": "repo_identity_unproven" } ]}The organisation does not have CI runners
