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

feat: add --json-file-output support to code test #3161

Merged
merged 1 commit into from
Apr 21, 2022

Conversation

strassl-snyk
Copy link
Member

What does this PR do?

Adds the --json-file-output argument to snyk code test. Since --json currently produces the same output as --sarif, --json-file-output also produces the same output as --sarif-file-output.
Bother --json-file-output and --sarif-file-output are supported at the same time.

How should this be manually tested?

Run snyk code test --json-file-output=vuln.json

What are the relevant tickets?

ZEN-128

Since --json produces the same output as --sarif, the same applies here.
We also support both --sarif-file-output and --json-file-output at the
same time, so as to be consistent with other commands.

[ZEN-128]
@strassl-snyk strassl-snyk requested a review from a team as a code owner April 21, 2022 10:19
@github-actions
Copy link
Contributor

Warnings
⚠️

Since the CLI is unifying on a standard and improved tooling, we're starting to migrate old-style imports and exports to ES6 ones.
A file you've modified is using either module.exports or require(). If you can, please update them to ES6 import syntax and export syntax.
Files found:

  • test/jest/unit/snyk-code/snyk-code-test.spec.ts

Generated by 🚫 dangerJS against b97d0e6

@patricia-v
Copy link
Contributor

LGTM, nice work! 😁

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 this pull request may close these issues.

2 participants