Get GitHub Container Registry token
GitHub (GHCR)
Get GitHub Container Registry token
Generates a temporary GitHub App installation token for ghcr.io access. Use this token with docker login: docker login ghcr.io -u x-access-token -p <token>. Token expires after approximately 1 hour.
GET
Get GitHub Container Registry token
Path Parameters
CybeDefend organization ID
Example:
"550e8400-e29b-41d4-a716-446655440000"
Response
Registry token generated successfully
GitHub App installation token (use as password for docker login)
Example:
"<github-app-token>"
Username for docker login (always "x-access-token" for GitHub App tokens)
Example:
"x-access-token"
Container registry URL
Example:
"ghcr.io"
GitHub owner (user or organization)
Example:
"my-org"
Token expiration (ISO 8601), typically ~1 hour
Example:
"2025-01-16T15:30:00.000Z"