-
Notifications
You must be signed in to change notification settings - Fork 597
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
syft should not warn on known bad package.json #3470
Comments
Hi @robbat2! Thanks for the issue. Today I learned that What version of Syft are you using? Syft recently changed to treat unparseable files as known-unknowns (see #518) and no longer prints warnings here. I think if you upgrade Syft, you'll stop seeing the warnings, but the JSON output you get will list the malformed package JSON as known unknowns. If you also wish to turn that off, or if you don't want to upgrade Syft right now, you can set Syft to ignore certain globs: Discussion: Should Syft exclude certain globs by default?I've marked this as |
Unclear what version, this is coming from another pipeline - it would be whatever is used by buildkit v1.4.0 in GitHub Actions. |
@robbat2 this warning is no longer printed in the latest version of Syft. Can you share exactly what GitHub action and version is generating the warning? Then we could at least ask them to upgrade or send an upgrade PR. I'm not sure what other action we can take; this is already fixed in latest Syft. |
Newer buildkit has improved it slightly:
Can we drop even that |
What would you like to be added:
syft should ignore explicitly malformed test file package.json
e.g. https://github.com/browserify/resolve/blob/main/test/resolver/malformed_package_json/package.json
Why is this needed:
Reduce false positive warnings in runs.
Other tooling already excludes the file: https://github.com/search?q=%22malformed_package_json%22&type=code
Additional context:
Syft runs presently throw these warnings for it:
The text was updated successfully, but these errors were encountered: