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

Format options for results on stdout not working #644

Closed
wongherlung opened this issue Jun 2, 2021 · 0 comments · Fixed by #672
Closed

Format options for results on stdout not working #644

wongherlung opened this issue Jun 2, 2021 · 0 comments · Fixed by #672

Comments

@wongherlung
Copy link
Contributor

wongherlung commented Jun 2, 2021

Summary

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.

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

Successfully merging a pull request may close this issue.

1 participant