Skip to content

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

Open
@erin-doyle

Description

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

Activity

maxammann

maxammann commented on Feb 7, 2025

@maxammann

Same issue here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

      Participants

      @maxammann@erin-doyle

      Issue actions

        GitHub API error when comment exceeds max limit of characters allowed · Issue #66 · docker/scout-action