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

support table akin to snyk-delta #107

Open
wants to merge 21 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
b8b6892
Create example-more-than-n-vulns
amitsnyk Mar 17, 2022
58f69a5
fix: package.json & package-lock.json to reduce vulnerabilities
snyk-bot Mar 22, 2022
63ae937
fix: upgrade snyk from 1.731.0 to 1.946.0
snyk-bot Jun 24, 2022
a743bca
fix: upgrade debug from 4.3.2 to 4.3.4
snyk-bot Jun 24, 2022
12457bf
Merge pull request #93 from snyk-tech-services/snyk-upgrade-90fe6656c…
lili2311 Jun 29, 2022
071c6f4
Merge pull request #92 from snyk-tech-services/snyk-upgrade-a801bfd3b…
lili2311 Jun 29, 2022
e419417
Merge pull request #88 from snyk-tech-services/snyk-fix-e4c8206556685…
lili2311 Jun 29, 2022
aca77d2
fix: drop snyk CLI & lockfile
lili2311 Jun 29, 2022
0d2ff79
Merge pull request #95 from snyk-tech-services/fix/drop-snyk-cli
lili2311 Jun 29, 2022
55fccef
docs: inactively maintained
lili2311 Oct 5, 2022
1c6b5ce
fix: update deps
lili2311 Oct 5, 2022
5595388
feat: min Node 10 as @snyk/protect is Node 10+
lili2311 Oct 6, 2022
49c0d15
Merge pull request #96 from snyk-tech-services/docs/inactively-mainta…
lili2311 Oct 6, 2022
a8671d7
Merge pull request #87 from amitsnyk/develop
lili2311 Nov 14, 2022
ab64101
Merge pull request #97 from snyk-tech-services/fix/update-deps
lili2311 Nov 14, 2022
350b817
fix: switch no issues to output to info to not fail CI scripts
aarlaud Nov 25, 2022
cb1ba18
Merge pull request #99 from snyk-tech-services/fix/dont-log-warning-o…
aarlaud Nov 25, 2022
e31c2d1
fix: use yaml load instead of the removed safeload
aarlaud Nov 25, 2022
44ad2e4
Merge pull request #102 from snyk-tech-services/fix/use-yaml-load-ins…
aarlaud Nov 25, 2022
4d6883f
Create CODEOWNERS (#104)
scott-es Feb 14, 2023
e8ec0fa
support table akin to snyk-delta
sebsnyk Apr 3, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
version: 2.1
orbs:
snyk: snyk/[email protected]
jobs:
build-test-publish:
docker:
Expand All @@ -10,10 +8,6 @@ jobs:
- run: npm install semantic-release @semantic-release/exec pkg --save-dev
- run: npm install
- run: npm test
- snyk/scan:
fail-on-issues: true
monitor-on-build: true
token-variable: SNYK_TOKEN
- run: npx semantic-release
build-test:
docker:
Expand All @@ -22,20 +16,13 @@ jobs:
- checkout
- run: npm install
- run: npm test
- snyk/scan:
fail-on-issues: true
monitor-on-build: false
token-variable: SNYK_TOKEN
- run: npx tsc
build-test-from-fork:
docker:
- image: circleci/node:latest
steps:
- checkout
- run: npm install
- run: npm test
- run: npx tsc

workflows:
version: 2.1
nightly:
Expand Down
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# CS Engineering will be required for a review on every PR
* @snyk-labs/cs-engineers
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node_modules
.dccache
dist
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,19 @@ snyk-filter takes the JSON outputted from the [Snyk CLI](https://support.snyk.io

[![Known Vulnerabilities](https://snyk.io//test/github/snyk-tech-services/snyk-filter/badge.svg?targetFile=package.json)](https://snyk.io//test/github/snyk-tech-services/snyk-filter?targetFile=package.json)
[![CircleCI](https://circleci.com/gh/snyk-tech-services/snyk-filter.svg?style=svg)](https://circleci.com/gh/snyk-tech-services/snyk-filter)
[![Not Maintained](https://img.shields.io/badge/Maintenance%20Level-Not%20Maintained-yellow.svg)](https://gist.github.com/cheerfulstoic/d107229326a01ff0f333a1d3476e068d)
[![Inactively Maintained](https://img.shields.io/badge/Maintenance%20Level-Inactively%20Maintained-yellowgreen.svg)](https://gist.github.com/cheerfulstoic/d107229326a01ff0f333a1d3476e068d)

**This repository is not in active developemnt and critical bug fixes only will be considered.**

**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)**

## Supported Snyk products

| Product | Supported |
| ---- | --------- |
| Open Source | ✅ |
| Container | ✅ |
| IaC | ❌ |
| Code | ❌ |

# How do I use it?

Expand Down
4 changes: 2 additions & 2 deletions lib/snyk-filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function run(source, reportCallback, filters, cliOptions = null) {
//options = options;

try {
var ymlFileInJSON = yaml.safeLoad(fs.readFileSync(filters, "utf8"));
var ymlFileInJSON = yaml.load(fs.readFileSync(filters, "utf8"));
customFilters = ymlFileInJSON.customFilters;
debug(customFilters);
} catch (e) {
Expand Down Expand Up @@ -154,7 +154,7 @@ function pass(data, passString, passFailMsg) {
jq.run(query, data, options)
.then((output) => {
if (output == 0) {
console.warn(
console.info(
`${chalk.yellow(
data.projectName || data.path
)} - No issues found after custom filtering`
Expand Down
Loading