Search code examples
githubannotationsgithub-actionsgithub-check-run

Disable Github Actions check runs from annotating files


Looking for a way to disable Github Actions check runs from annotating files.

/* Context - Working on an eslint workflow action to comment on PR's, as it's annoying with this check runs annotating all files by default */

Ref PR- https://github.com/tamdilip/ember_poc/pull/143/files


Solution

  • Observed that CLI error logs in terminal console are automatically invoking check-runs which is the reason for annotation as this seems to be a feature of Github Action itself by default and no way to disable it by any configuration.

    For time being I managed to stop the annotations by capturing those CLI logs output as XML format separately via a listener instead of directly letting the error to log in terminal console.

    Still a configuration level option to toggle check-runs from annotating should be made available.