You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implements the paradigm from Get-GHSecretScanningHistoryProgress.ps1 in
Python. Adds:
- Enterprise/org/repo resolution with GraphQL for enterprise orgs
- Concurrent scan history API calls via ThreadPoolExecutor
- Summary progress bars for backfill/incremental/pattern_update scans
- Detailed markdown table output option
- Error reporting for repos with disabled secret scanning
Also adds list_org_repos, list_enterprise_orgs, and
get_secret_scanning_scan_history methods to githubapi.py.
Agent-Logs-Url: https://github.com/advanced-security/ghas-api-python-scripts/sessions/f6a777a1-48ca-4999-ba66-76934aa82818
Co-authored-by: felickz <1760475+felickz@users.noreply.github.com>
Copy file name to clipboardExpand all lines: README.md
+43Lines changed: 43 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,49 @@ This is a set of scripts that use these APIs to access and manage alerts. The sc
24
24
25
25
A note on common arguments: generally, the date in `--since` can be specified as `YYYY-MM-DD` or as `Nd` where `N` is the number of days ago. Full ISO formats are also supported. If a timezone is not specified, the date is assumed to be in UTC (`Z` timezone).
26
26
27
+
### Get secret scanning scan history progress
28
+
29
+
This script retrieves the secret scanning scan history for repositories across an Enterprise, organization, or single repo. It queries the `GET /repos/{owner}/{repo}/secret-scanning/scan-history` endpoint for each repo concurrently and displays a summary with progress bars showing backfill, incremental, pattern update, and custom pattern scan completion status. Optionally outputs a detailed markdown table.
This script retrieves secret scanning alerts from GitHub repositories, organizations, or Enterprises and outputs them in CSV or JSON format. It supports filtering by state, date, and push protection bypass status. Use this to audit, analyze, or export secret scanning data for compliance or security purposes.
0 commit comments