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

Provide a problem matcher #75

Open
toast-gear opened this issue Jan 21, 2022 · 0 comments
Open

Provide a problem matcher #75

toast-gear opened this issue Jan 21, 2022 · 0 comments

Comments

@toast-gear
Copy link

toast-gear commented Jan 21, 2022

It would be great if checkov provided a problem matcher with this action so end users could receive a richer error output experience in GitHub Actions by allowing test failures and their reasoning to bubble up to the UI as detected by the problem matcher https://github.com/jsoref/actions-runner/blob/main/docs/adrs/0276-problem-matchers.md.

This would be especially nice as it's common to upload your checkov output to something else like Datadog. To do this you would want checkov to output in something machine friendly like XML. To then get nice output for humans in the pipeline you currently would need to run checkov a second time with something human friendly as the output. This second run could be avoided by having a problem matcher bubble the errors up to the GitHub UI meaning checkov only needs to be ran once.

Here is an example of a project that provides a problem matcher https://github.com/rhysd/actionlint/blob/main/.github/actionlint-matcher.json

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