{
  "name": "bigquery-query",
  "title": "Run a BigQuery query",
  "description": "Run a Standard SQL query against BigQuery with the bq CLI, using a GCP service-account key read from a Kubernetes Secret.",
  "category": "Databases",
  "tags": [
    "cloud-sdk",
    "databases"
  ],
  "latestVersion": "1.0.4",
  "versions": [
    "1.0.4",
    "1.0.3",
    "1.0.2",
    "1.0.1",
    "1.0.0"
  ],
  "parameters": [
    "project",
    "query",
    "credentials-secret-key",
    "credentials-secret-name"
  ],
  "images": [
    "google/cloud-sdk@sha256:b38f2881552c3054d140c8eeb4ad88bdc0eb4deeeb38507c5dac1403adc3ee64"
  ],
  "url": "https://catalog.dagweave.com/api/v1/items/bigquery-query.json",
  "templateUrl": "https://catalog.dagweave.com/api/v1/items/bigquery-query/latest/template.yaml",
  "page": "https://catalog.dagweave.com/items/bigquery-query/",
  "entrypoint": "query",
  "parameterDetails": [
    {
      "name": "project",
      "title": "Project",
      "description": "GCP project to bill the query to.",
      "type": "string",
      "required": true,
      "example": "my-gcp-project"
    },
    {
      "name": "query",
      "title": "SQL query",
      "description": "The Standard SQL query to run.",
      "type": "string",
      "required": true,
      "example": "SELECT count(*) FROM `proj.dataset.table`;"
    },
    {
      "name": "credentials-secret-key",
      "title": "Credentials secret key",
      "description": "Key within the Secret that holds the service-account key JSON.",
      "type": "string",
      "required": false,
      "default": "key.json"
    },
    {
      "name": "credentials-secret-name",
      "title": "Credentials secret name",
      "description": "Name of the Kubernetes Secret holding a GCP service-account key JSON.",
      "type": "string",
      "required": false,
      "default": "gcp-service-account"
    }
  ],
  "imageDetails": [
    {
      "ref": "google/cloud-sdk@sha256:b38f2881552c3054d140c8eeb4ad88bdc0eb4deeeb38507c5dac1403adc3ee64",
      "repository": "google/cloud-sdk",
      "digest": "sha256:b38f2881552c3054d140c8eeb4ad88bdc0eb4deeeb38507c5dac1403adc3ee64"
    }
  ],
  "versionDetails": [
    {
      "version": "1.0.4",
      "date": "2026-08-20",
      "notes": "Repin google/cloud-sdk:slim onto 581.0.0-slim, the digest :slim now heads at. gcloud goes 580.0.0 to 581.0.0 on the same Dockerfile: Entrypoint, Cmd, User and WorkingDir match across both digests and the only layers that differ are the ones carrying the version argument. The four util-linux advisories the old pin went red on, CVE-2026-53612 through CVE-2026-53615, are gone with Debian's 2.41.5-0+deb13u1, so the OS baseline record is deleted rather than rewritten. The eleven vendored advisories are the same eleven on both digests and keep their record.",
      "latest": true,
      "installable": true,
      "url": "https://catalog.dagweave.com/api/v1/items/bigquery-query/1.0.4.json",
      "templateUrl": "https://catalog.dagweave.com/api/v1/items/bigquery-query/1.0.4/template.yaml"
    },
    {
      "version": "1.0.3",
      "date": "2026-08-11",
      "notes": "Repin google/cloud-sdk:slim on the current digest, which is also the newest 580.0.0-slim. gcloud goes 579.0.0 to 580.0.0 and bq stays at 2.1.36. The last fixable OS-package HIGH, linux-libc-dev CVE-2026-64561, is gone with the newer Debian trixie base, so the OS baseline record is deleted rather than rewritten. The three cryptography advisories in the bundled Python are unmoved and keep their record.",
      "latest": false,
      "installable": false,
      "url": "https://catalog.dagweave.com/api/v1/items/bigquery-query/1.0.3.json"
    },
    {
      "version": "1.0.2",
      "date": "2026-08-11",
      "notes": "Repin google/cloud-sdk:slim on the current digest. Same tag, newer build. Fixable OS-package HIGH drops from 21 to 1: the libexpat1 and linux-libc-dev updates have landed, one newer linux-libc-dev has not. gcloud goes 578.0.0 to 579.0.0 and bq stays at 2.1.36.",
      "latest": false,
      "installable": false,
      "url": "https://catalog.dagweave.com/api/v1/items/bigquery-query/1.0.2.json"
    },
    {
      "version": "1.0.1",
      "date": "2026-08-02",
      "notes": "Repin google/cloud-sdk:slim on the current digest. Same tag, newer build. Fixable CRITICAL/HIGH drops from 37 to 18.",
      "latest": false,
      "installable": false,
      "url": "https://catalog.dagweave.com/api/v1/items/bigquery-query/1.0.1.json"
    },
    {
      "version": "1.0.0",
      "date": "2026-07-17",
      "notes": "Initial release.",
      "latest": false,
      "installable": false,
      "url": "https://catalog.dagweave.com/api/v1/items/bigquery-query/1.0.0.json"
    }
  ],
  "source": "https://github.com/dagweave/catalog/tree/67458f74dbbf913b03177f3cefc69424be85eb1d/catalog/bigquery-query",
  "catalogSha": "67458f74dbbf913b03177f3cefc69424be85eb1d"
}
