List sources
Changed onList sources known by GitGuardian.
Request
- Base URLhttps://api.gitguardian.com
- URLhttps://api.gitguardian.com/v1/sources
- AuthHTTP bearer
Query parameters
Pagination cursor.
Page number.
Number of items to list per page.
Sources matching this search.
Filter by the exact, case-sensitive full_path of the source, as returned by this endpoint. Prefer it over search to look up a single source.
Filter sources based on the status of their latest historical scan.
Filter sources based on their health status.
Filter by source type.
Sort the results by their field value. The default sort is ASC, DESC if the field is preceded by a '-'.
Filter by visibility status.
Filter by specific external id.
Filter by source criticality.
Filter by monitored value.
Filter by whether the source is archived on the provider side when that information is available (e.g. archived repository). Sources without this metadata are treated as not archived for this filter.
Filter by the id of a team. Only sources belonging to the given team's perimeter are returned. Sources outside of the requester's accessible perimeter are still hidden.
Keep only sources whose real-time monitoring status is one of the given (comma-separated) buckets. Requires the monitoring-status feature to be enabled for the workspace; otherwise the parameter is ignored. The unreachable and disabled buckets are not fully backed yet.
Exclude sources whose real-time monitoring status is one of the given (comma-separated) buckets. Requires the monitoring-status feature to be enabled for the workspace; otherwise the parameter is ignored.
Response
Source List
Example response
[
{
"id": 6531,
"url": "https://github.com/GitGuardian/gg-shield",
"type": "github",
"full_name": "gitguardian/gg-shield",
"full_path": "GitGuardian/ggshield",
"health": "at_risk",
"default_branch": "main",
"default_branch_head": "abcd97b4aaf927ea934504263322e75e86c31xyz",
"open_incidents_count": 3,
"closed_incidents_count": 2,
"visibility": "public",
"external_id": "125",
"source_criticality": "critical",
"last_scan": {
"date": "2021-05-20T12:40:55.662949Z",
"status": "finished",
"failing_reason": "DMCA takedown",
"commits_scanned": 123,
"branches_scanned": 2,
"duration": "1:30.454444"
},
"monitored": true,
"monitoring_status": "active",
"deleted": true
}
]Changes
- info
added the new optional
queryrequest parameterfull_path - info
added the optional property
/to the response with the status
- info
- info
added the enum value
nhi_sourceto the propertyallOf[subschema #1]/of thequeryrequest parametertype
- info