Comments (3)
Ack. Snyk-filter predates all-projects option but we'll take a look.
from snyk-filter.
Any movement on this?
I have the same issue, when using --all-projects
with snyk test and feeding it to snyk-filter, it will produce invalid JSONs. Would be nice if I can provide developers with snyk-to-html output to better show why their deployment was stopped, instead of the plain output during a pipeline run.
from snyk-filter.
hi @odlevakp This repository is not actively maintained, we are working on critical bug fixes only. However we can suggest you try something like this as a .sh
script, but it would generate individual results instead of 1 html file:
#!/bin/bash
set -euo pipefail
exit_code=0
echo 'Running snyk test --all-projects --json | snyk-filter'
for test in `snyk test --all-projects --json $* | jq -r '. | select(.[] or .vulnerabilities) | @base64'`; do
project_exit_code=$?
exit_code+=$project_exit_code
project="$(echo ${test} | base64 --decode | jq -r '.displayTargetFile')"
echo ${test} | base64 --decode | snyk-filter -f ./filter-high-vulns-upgradeable.yml --json |snyk-to-html -o results-${project}.html
done
exit $exit_code
from snyk-filter.
Related Issues (12)
- Error loading yml fileError on version 1.3.0 HOT 1
- [BUG]:
- [BUG]: There are 2 Path Traversals issues which are detected by snyk code in index.js
- yaml file does not allow tabs HOT 1
- enable json output to feed into snyk-to-html HOT 1
- No sanity check to see if all the required fields exists in the filters YAML file
- Official npm Package HOT 1
- The automated release is failing 🚨
- support for IaC HOT 2
- provide binaries for snyk-filter HOT 1
- Feature request: Support .snyk ignores HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snyk-filter.