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

Allow custom policy output to be parsed similarly to that of standard policy check #4952

Open
1 task
Mezage opened this issue Sep 25, 2024 · 0 comments
Open
1 task
Labels
feature New functionality/enhancement

Comments

@Mezage
Copy link

Mezage commented Sep 25, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Describe the user story
As a developer, I often want to enable custom policies and use Conftest's ouput, but the logic fails on the standard output conftest produces

Screenshot 2024-09-25 at 12 20 39 PM

Describe the solution you'd like
I'd love for custom policies to be given the option to be parsed based on the standard output that Contest produces (ref pic above)
Since custom policies trigger on the term 'fail', this string will always fail in the eyes of atlantis. I'd love for there to be a flag for custom policy logic to also look for this regex in policy output.

Describe alternatives you've considered
So far my team had to create a function that scrubs "failures" from Conftest's output string if nothing is failing, to avoid false positives. But that results in a blank summary block in the policy GHE comment.

image

@Mezage Mezage added the feature New functionality/enhancement label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality/enhancement
Projects
None yet
Development

No branches or pull requests

1 participant