Skip to main content
GET
/
integrations
/
github-container-registry
/
organization
/
{organizationId}
/
token
Get GitHub Container Registry token
curl --request GET \
  --url https://api-eu.cybedefend.com/integrations/github-container-registry/organization/{organizationId}/token \
  --header 'x-api-key: <api-key>'
{
  "token": "<github-app-token>",
  "username": "x-access-token",
  "registryUrl": "ghcr.io",
  "githubOwner": "my-org",
  "expiresAt": "2025-01-16T15:30:00.000Z"
}

Authorizations

x-api-key
string
header
required

API Key for authentication. You can generate an API key from your personal settings.

Path Parameters

organizationId
string<uuid>
required

CybeDefend organization ID

Example:

"550e8400-e29b-41d4-a716-446655440000"

Response

Registry token generated successfully

token
string
required

GitHub App installation token (use as password for docker login)

Example:

"<github-app-token>"

username
string
required

Username for docker login (always "x-access-token" for GitHub App tokens)

Example:

"x-access-token"

registryUrl
string
required

Container registry URL

Example:

"ghcr.io"

githubOwner
string
required

GitHub owner (user or organization)

Example:

"my-org"

expiresAt
string
required

Token expiration (ISO 8601), typically ~1 hour

Example:

"2025-01-16T15:30:00.000Z"