-
Notifications
You must be signed in to change notification settings - Fork 24
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
Add "file-output-argument" parameter to the snyk test
command.
#112
base: develop
Are you sure you want to change the base?
Conversation
Issue trying to solve: Adding the option "--json-file-oupt=..." to "additional-arguments" parameter will cause the snyk monitor to fail. Error: "The following option combination is not currently supported: monitor + json-file-output"
Hey there, thanks for the PR. Why would this help your case? Snyk monitor just does not support outputting to a file, so I'm unclear, why we should allow that parameter in the general config. |
Hello @bastiandoetsch it appears that
If passing --json-file-output to this var it appears it breaks the pipeline due to:
It should be possible to pass arguments related to |
@slyszkowski , I don't think it makes sense to pass that argument, as the backend does not support it. But yeah, I understand now that you just want it for test, and not pass it to monitor. |
@bastiandoetsch what do you mean by backend here? Is there any way to make possible to make use of https://docs.snyk.io/snyk-cli/commands/test#json-file-output-less-than-output_file_path-greater-than within snyk orb? Basically what we need is having this being fixed ASAP. Without it we cannot integrate snyk with other tool we use. Please note that this issue was as well raised via support portal: https://support.snyk.io/hc/en-us/requests/67831 |
@slyszkowski I'm aware of the support ticket. The command line parameter is not supported for |
@bastiandoetsch we don't expect How then can we generate json report for |
You can just deactivate monitor with setting |
Hi @bastiandoetsch,
I think |
@jlam-bills, if you would like to continue with this PR it would need tests to verify that it works. |
@bastiandoetsch same from our end, if we want to make use of snyk test json report then we will need to duplicate our pipeline execution which seem to be overhead. Would be wonderful to proceed with this PR @jlam-bills |
Add "file-output-argument" parameter to the
snyk test
command.Issue trying to solve:
Adding "--json-file-output=..." option to "additional-arguments" parameter will cause the snyk monitor to fail.
Error: "The following option combination is not currently supported: monitor + json-file-output"