Commit e189e7c
Fix get_secret_scanning_scan_history to use direct API call
The method was using query_once which defaults to cursor-based
pagination. The scan-history endpoint returns a single JSON object
(not a paginated list), so pagination params were incorrect and HTTP
errors were silently swallowed.
Now uses _get directly so:
- No spurious per_page/before query params
- HTTP errors (e.g. 403) properly propagate to callers
Agent-Logs-Url: https://github.com/advanced-security/ghas-api-python-scripts/sessions/7fb48030-50b4-4f88-bce8-1e571af0e38b
Co-authored-by: felickz <1760475+felickz@users.noreply.github.com>1 parent 20515fa commit e189e7c
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
| 548 | + | |
548 | 549 | | |
549 | | - | |
550 | | - | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
551 | 553 | | |
552 | 554 | | |
553 | 555 | | |
| |||
0 commit comments