mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 23:55:51 +03:00
[GH-ISSUE #164] Audit: Safe type assertions in client_pagination.go #47
Labels
No labels
bug
bug
documentation
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/App-Store-Connect-CLI#47
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rudrankriyam on GitHub (Jan 25, 2026).
Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/164
Description
internal/asc/client_pagination.go:99-141has unsafe type assertions that will panic at runtime ifresultis not of the expected type:This is a risk if a new response type is added but the pagination switch statement isn't updated.
Impact
Location
internal/asc/client_pagination.go:99-141Fix
Use safe type assertion with comma-ok idiom:
Or add a default case that returns an error.
Severity
Critical
@rudrankriyam commented on GitHub (Jan 25, 2026):
Closed via #170.