GitGuardian / ggshield-action

GitGuardian Shield GitHub Action - Find exposed credentials in your commits

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow defining multiple outputs

Jiri-Stary opened this issue · comments

Hello,

i have a suggestion - currently it is only possible to choose output either json or human readable output.
I would like to get both. Other tools commonly support possibility to define multiple formats e.g. human, json ,sarif

Human output is feasible for console logs or to attach to a pull, request, while machine readable output is usable for further processing or to determine if /when to fail a build. In my use case i would like to have both

Hi Jiri, sorry for the late reply. Adding multiple output sounds a bit tricky: I don't see how it could work with stdout piping (the ability to run ggshield secret scan path . --json | jq [...]). Do you have any ideas on how to deal with that?