Skip to main content

CLI for querying Docker Scout GraphQL vulnerabilities for Docker images.

Project description

docker-scout-graphql

docker-scout-graphql scans Docker images by:

  1. Extracting package dependencies from docker sbom --format syft-json.
  2. Converting package URLs into the format expected by Docker Scout's GraphQL backend.
  3. Querying https://api.dso.docker.com/v1/graphql.
  4. Returning vulnerabilities separated by image layer hierarchy.

It can scan one image or all local images.

Install

pip install .

For development mode:

pip install -e .

Usage

Scan one image and print JSON (default):

docker-scout-graphql debian:12-slim

Scan one image and write JSON report:

docker-scout-graphql debian:12-slim -o report.json

Scan all local images and write JSON:

docker-scout-graphql --all-images -o report.json

Markdown output (optional):

docker-scout-graphql debian:12-slim --markdown -o report.md

Output

Default output is JSON with this top-level shape:

{
  "schema_version": "1.0",
  "generated_at_utc": "2026-02-27T02:17:14.428185+00:00",
  "images_scanned": 1,
  "images": []
}

Each images[] entry contains:

  • overall counts (queried_packages, vulnerable_packages_count, vulnerability_count)
  • raw vulnerable package records (packages)
  • layered hierarchy (image_hierarchy.layers) with vulnerable packages grouped by image layer

Release

For TestPyPI/PyPI publishing steps, see PYPI_RELEASE.md. You can also use the helper script:

.\scripts\publish.ps1 -TestPyPI
.\scripts\publish.ps1

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

docker_scout_graphql-0.2.0.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

docker_scout_graphql-0.2.0-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file docker_scout_graphql-0.2.0.tar.gz.

File metadata

  • Download URL: docker_scout_graphql-0.2.0.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for docker_scout_graphql-0.2.0.tar.gz
Algorithm Hash digest
SHA256 017e6617eb5ec6c21d9192ad19993f7f907a3a38c054dd84b6bd2353d1ae5ad2
MD5 647e2ec5388512ea9222d41e90475dcc
BLAKE2b-256 ed891fb9317521a6296643b111ae6d1be9d771c955de2e70fe4a72e7041427bb

See more details on using hashes here.

File details

Details for the file docker_scout_graphql-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for docker_scout_graphql-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3201b1ce763567cf1d0b25e5a9cc89b8e46340265338642cdf99507a4d7e221e
MD5 36b3e35b94a4dbeabe2d0f42d4f3780a
BLAKE2b-256 29ee4c2979822c12eeb5793e0c9469000d80ae45de5344e30bf27615695820e7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page