stability: validate numeric bounds on actions log params #3
Reference in New Issue
Block a user
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?
Problem
operation/actions/runs.goacceptsmax_bytesandtail_linesparameters without bounds. A caller can request multi-GB log payloads or unreasonable line counts, which will exhaust memory in the MCP server process before any response is returned.Suggested direction
Add explicit caps in the tool handler:
max_bytes≤ ~10 MB (configurable via flag if larger is ever needed)tail_lines≤ 10_000Pair with the broader pagination work in the per_page issue.