![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
snyk-filter
Advanced tools
Module to consume json output from Snyk CLI for advanced filtering and results display
snyk-filter takes the JSON outputted from the Snyk CLI, e.g. snyk test --json
and applies custom filtering of the results, as well as options to fail your build.
This repository is in maintenance mode, no new features are being developed. Bug & security fixes will continue to be delivered. Open source contributions are welcome for small features & fixes (no breaking changes)
npm i -g snyk-filter
node-jq
snyk-filter uses the node-jq
library, which requires that a jq
binary is installed. This typically happens transparently via npm install -g
, but on some systems JQ does not get properly installed locally. If you receive an error after installation regarding node-jq
, then jq
should be installed manually to avoid this error.
# install jq ahead of time (ubuntu example)
sudo apt-get install -y jq
# tell node-jq to skip trying to install it on its own
export NODE_JQ_SKIP_INSTALL_BINARY=true
# tell node-jq where the existing jq binary is
export JQ_PATH=$(which jq)
# finally, install snyk-filter (does not work with node version > 12)
sudo npm install -g
Implement your custom JQ filters in a .snyk-filter/snyk.yml file relative to your current working directory where you will be running snyk test from (see in sample-filters and tweak things from there - use JQPlay )
Then pipe your snyk test --json
output into snyk-filter
or use the -i
argument to input a json file. Use the -f
argument to point to the yml file containing your custom filters if you are not using the default location (.snyk-filter/snyk.yml).
Return code of snyk-filter will be 0 for pass (no issues) and 1 for fail (issues found)
snyk test --json | snyk-filter
snyk test --json | snyk-filter -f /path/to/example-cvss-9-or-above.yml
snyk-filter -i snyk_results.json
snyk-filter -i snyk_results.json -f /path/to/example-high-upgradeable-vulns.yml
--json
to output json
FAQs
Module to consume json output from Snyk CLI for advanced filtering and results display
The npm package snyk-filter receives a total of 764 weekly downloads. As such, snyk-filter popularity was classified as not popular.
We found that snyk-filter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.