scout-action icon indicating copy to clipboard operation
scout-action copied to clipboard

GitHub API error when comment exceeds max limit of characters allowed

Open erin-doyle opened this issue 1 year ago • 1 comments

We have a repo that is receiving the following error from the cves command:

422 Validation Failed [{Resource:IssueComment Field:data Code:unprocessable Message:Body is too long (maximum is 65536 characters)}]

I understand that this is a limitation of the GitHub API, but could the Action handle the error more gracefully? A couple of options could include:

  • separating out the report across multiple comments
  • truncating the report with a note that the results have been truncated

erin-doyle avatar Jan 03 '25 16:01 erin-doyle

Same issue here!

maxammann avatar Feb 07 '25 11:02 maxammann