You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The -fmt flag does not work when the results are printed to stdout by default.
Seems like we can only get the format we want on stdout only when we run gosec -out output.json -stdout -verbose json ./.... I suspect that a8b633f changed the behavior.
Steps to reproduce the behavior
Run gosec -fmt json ./....
gosec version
v2.8.0
Go version (output of 'go version')
go version go1.14.1 linux/amd64
Operating system / Environment
Ubuntu 20.04
Expected behavior
A JSON object will be printed out on stdout.
Actual behavior
The text output is printed to stdout.
The text was updated successfully, but these errors were encountered:
Summary
The
-fmt
flag does not work when the results are printed tostdout
by default.Seems like we can only get the format we want on
stdout
only when we rungosec -out output.json -stdout -verbose json ./...
. I suspect that a8b633f changed the behavior.Steps to reproduce the behavior
Run
gosec -fmt json ./...
.gosec version
v2.8.0
Go version (output of 'go version')
go version go1.14.1 linux/amd64
Operating system / Environment
Ubuntu 20.04
Expected behavior
A JSON object will be printed out on
stdout
.Actual behavior
The
text
output is printed tostdout
.The text was updated successfully, but these errors were encountered: