Docs
Reference

Trade a CI OIDC token for a delivery credential

The same exchange as `/api/v1/auth/oidc`, for a credential that will carry values into a build.

POST/api/v1/auth/oidc/delivery

The same exchange as /api/v1/auth/oidc, for a credential that will carry values into a build. It lives five minutes rather than the fifteen the other exchanges hand out, it records the run on the credential so the audit trail names one execution, and it refuses the triggers that put untrusted code in the job.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

The GitHub Actions OIDC token for the run that will receive the values.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/auth/oidc/delivery" \  -H "Content-Type: application/json" \  -d '{    "token": "string"  }'
{  "credential": "string",  "expiresAt": "2019-08-24T14:15:22Z"}