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

pnpm audit --json doesn't ignore cves when pnpm.auditConfig.ignoreCves is set #5734

Closed
princekumar-d opened this issue Dec 2, 2022 · 0 comments · Fixed by #5752
Closed
Assignees

Comments

@princekumar-d
Copy link

princekumar-d commented Dec 2, 2022

The pnpm audit --json doesn't ignore the cves when pnpm.auditConfig.ignoreCves is set.
The fix #5592 does not work fully.
It only ignores the cves in the table output and not in --json and exits with an error code.

pnpm version: 7.16.0

Code to reproduce the issue:

set the below config in package.json

"pnpm": {
    "auditConfig": {
      "ignoreCves": [
        "CVE-xxxx-xxxx"
      ]
    }
  }

execute below command
pnpm audit --json

Expected behavior:

The JSON output should not contain the ignored cves

Actual behavior:

The JSON output contains the ignored cves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants