---
title: "GET /api/v2/secret-scanning/data-sources/github/{dataSourceId}/scans"
method: GET
path: "/api/v2/secret-scanning/data-sources/github/{dataSourceId}/scans"
tags: ["Secret Scanning"]
---

# GET /api/v2/secret-scanning/data-sources/github/{dataSourceId}/scans

`GET /api/v2/secret-scanning/data-sources/github/{dataSourceId}/scans`

Get the scans associated with the specified GitHub Data Source by ID.

## Path parameters

- `dataSourceId` string, uuid, required

## Response `200`

Default Response

- object
  - `scans` object[], required
    - `id` string, uuid, required
    - `status` string
    - `statusMessage` string, nullable
    - `type` string, required
    - `resourceId` string, uuid, required
    - `createdAt` string, date-time, nullable
    - `scanningStartedAt` string, date-time, nullable

## Other responses

- `400` — Default Response
- `401` — Default Response
- `403` — Default Response
- `404` — Default Response
- `422` — Default Response
- `500` — Default Response

## Changes

> 19 revisions in range; 12 could not be searched.

- **2026-07-31** `edde28ab3c8c` — 1 info
  - added the optional property `scans/items/scanningStartedAt` to the response with the `200` status

[Change history](https://skmtc.dev/infisical/apis/infisical-api/changes/api/v2/secret-scanning/data-sources/github/:dataSourceId/scans/get.md)

---

[API](https://skmtc.dev/infisical/apis/infisical-api.md) · [All operations](https://skmtc.dev/infisical/apis/infisical-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infisical/infisical-api/revisions/c339fd54e42e/schema)
