Liftbay
API referenceRunner

Exchange a GitHub OIDC token for a job token

POST
/v1/runner/github/exchange

Request Body

application/json
  1. body
buildId*string
Length1 <= length <= 64
oidcToken*string
Length1 <= length <= 8192

Response Body

OK

application/json
  1. response
jobToken*string
expiresAt*string
curl -X POST "https://example.com/v1/runner/github/exchange" \  -H "Content-Type: application/json" \  -d '{    "buildId": "string",    "oidcToken": "string"  }'
{  "jobToken": "string",  "expiresAt": "string"}