> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cybedefend.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Docker images from GitHub Container Registry

> Lists all Docker images available in ghcr.io for the GitHub account associated with the organization.



## OpenAPI

````yaml get /integrations/github-container-registry/organization/{organizationId}/images
openapi: 3.0.0
info:
  title: Cybedefend API
  description: >-
    CybeDefend is an advanced API for application security analysis. Key
    features include OAuth 2.0 authentication, user/organization/project
    management, and REBAC-based permissions. It excels in static, dynamic, and
    IaC security analyses (SAST, DAST, IaC, etc.).
  version: '1.0'
  contact: {}
servers:
  - url: https://api-eu.cybedefend.com
    description: EU
  - url: https://api-us.cybedefend.com
    description: US
security: []
tags: []
paths:
  /integrations/github-container-registry/organization/{organizationId}/images:
    get:
      tags:
        - GitHub Container Registry
      summary: List Docker images from GitHub Container Registry
      description: >-
        Lists all Docker images available in ghcr.io for the GitHub account
        associated with the organization.
      operationId: GithubContainerRegistryOrganizationController_listImages
      parameters:
        - name: organizationId
          required: true
          in: path
          description: CybeDefend organization ID
          schema:
            format: uuid
            example: 550e8400-e29b-41d4-a716-446655440000
            type: string
        - name: pageSize
          required: false
          in: query
          description: Number of results per page
          schema:
            default: 30
            example: 25
            type: number
        - name: page
          required: false
          in: query
          description: Page number (1-based)
          schema:
            default: 1
            example: 1
            type: number
        - name: visibility
          required: false
          in: query
          description: 'Filter by visibility: "public", "private", or "internal"'
          schema:
            example: private
            type: string
      responses:
        '200':
          description: List of images from ghcr.io
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListImagesResponseDto'
        '401':
          description: Unauthorized - Invalid or missing authentication
          content:
            application/json:
              schema:
                example:
                  message: Unauthorized
                  statusCode: 401
                  timestamp: '2025-02-18T12:31:18.491Z'
                  path: /example/path
        '403':
          description: Forbidden - Insufficient permissions
          content:
            application/json:
              schema:
                example:
                  message: Forbidden
                  statusCode: 403
                  timestamp: '2025-02-18T12:31:18.491Z'
                  path: /example/path
        '404':
          description: GitHub App not installed for organization
          content:
            application/json:
              schema:
                example:
                  message: Resource not found
                  statusCode: 404
                  timestamp: '2025-02-18T12:31:18.491Z'
                  path: /example/path
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                example:
                  message: Internal server error
                  statusCode: 500
                  timestamp: '2025-02-18T12:31:18.491Z'
                  path: /example/path
components:
  schemas:
    ListImagesResponseDto:
      type: object
      properties:
        images:
          description: List of container images
          type: array
          items:
            $ref: '#/components/schemas/GithubImageInfoDto'
        totalCount:
          type: number
          description: Total count of images
          example: 10
        githubOwner:
          type: string
          description: GitHub owner used for the query
          example: my-org
      required:
        - images
        - totalCount
        - githubOwner
    GithubImageInfoDto:
      type: object
      properties:
        id:
          type: number
          description: Package ID
          example: 12345678
        name:
          type: string
          description: Full image name (ghcr.io/owner/name)
          example: ghcr.io/my-org/my-app
        packageName:
          type: string
          description: Package name
          example: my-app
        owner:
          type: string
          description: Owner (user or org)
          example: my-org
        visibility:
          type: string
          description: 'Visibility: "public", "private", or "internal"'
          example: private
        htmlUrl:
          type: string
          description: URL to package page
          example: https://github.com/orgs/my-org/packages/container/package/my-app
        createdAt:
          type: string
          description: Creation timestamp
          example: '2025-01-01T00:00:00Z'
        updatedAt:
          type: string
          description: Last update timestamp
          example: '2025-01-15T00:00:00Z'
        versionCount:
          type: number
          description: Number of versions
          example: 5
        scannable:
          type: boolean
          description: >-
            Whether the package can be scanned (has pull access via GitHub App
            token)
          example: true
        scannableReason:
          type: string
          description: >-
            If not scannable, explains why. For internal/private packages not
            linked to a repository, a PAT is required.
          example: >-
            Internal package NOT linked to any repository. Please link the
            package to a repository or use a PAT.
        linkedToRepository:
          type: boolean
          description: >-
            Whether the package is linked to a repository. Required for scanning
            internal/private packages with GitHub App tokens.
          example: true
      required:
        - id
        - name
        - packageName
        - owner
        - visibility
        - createdAt
        - updatedAt
        - versionCount
        - scannable
        - linkedToRepository

````