GET
/repos/{owner}/{repo}/secret-scanning/scan-historyGet secret scanning scan history for a repository
Lists the latest default incremental and backfill scans by type for a repository.
[!NOTE] This endpoint requires GitHub Advanced Security.
OAuth app tokens and personal access tokens (classic) need the repo or security_events scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the public_repo scope instead.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
ownerstringrequired
The account owner of the repository. The name is not case sensitive.
repostringrequired
The name of the repository without the `.git` extension. The name is not case sensitive.
200Response
incremental_scansarray<object>optional
pattern_update_scansarray<object>optional
backfill_scansarray<object>optional
custom_pattern_backfill_scansarray<object>optional
generic_secrets_backfill_scansarray<object>optional
404Repository does not have GitHub Advanced Security or secret scanning enabled
503Service unavailable
codestringoptional
messagestringoptional
documentation_urlstringoptional
Error handling
A 404 is returned: Repository does not have GitHub Advanced Security or secret scanning enabled. A 503 is returned: Service unavailable.
Was this helpful?