Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub API error when comment exceeds max limit of characters allowed #66

Open
erin-doyle opened this issue Jan 3, 2025 · 0 comments
Open

Comments

@erin-doyle
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant