Skip to main content
GET
/
integrations
/
github-container-registry
/
organization
/
{organizationId}
/
images
List Docker images from GitHub Container Registry
curl --request GET \
  --url https://api-eu.cybedefend.com/integrations/github-container-registry/organization/{organizationId}/images \
  --header 'x-api-key: <api-key>'
{
  "images": [
    {
      "id": 12345678,
      "name": "ghcr.io/my-org/my-app",
      "packageName": "my-app",
      "owner": "my-org",
      "visibility": "private",
      "createdAt": "2025-01-01T00:00:00Z",
      "updatedAt": "2025-01-15T00:00:00Z",
      "versionCount": 5,
      "scannable": true,
      "linkedToRepository": true,
      "htmlUrl": "https://github.com/orgs/my-org/packages/container/package/my-app",
      "scannableReason": "Internal package NOT linked to any repository. Please link the package to a repository or use a PAT."
    }
  ],
  "totalCount": 10,
  "githubOwner": "my-org"
}

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"

Query Parameters

pageSize
number
default:30

Number of results per page

Example:

25

page
number
default:1

Page number (1-based)

Example:

1

visibility
string

Filter by visibility: "public", "private", or "internal"

Example:

"private"

Response

List of images from ghcr.io

images
object[]
required

List of container images

totalCount
number
required

Total count of images

Example:

10

githubOwner
string
required

GitHub owner used for the query

Example:

"my-org"