chore: remove snyk
This commit is contained in:
147
.snyk
147
.snyk
@@ -1,147 +0,0 @@
|
||||
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
|
||||
version: v1.7.1
|
||||
# ignores vulnerabilities until expiry date; change duration by modifying expiry date
|
||||
ignore:
|
||||
'npm:marked:20170112':
|
||||
- simplemde > marked:
|
||||
reason: None given
|
||||
expires: '2017-07-08T02:23:08.324Z'
|
||||
- fuse-box > marked:
|
||||
reason: None given
|
||||
expires: '2017-06-08T23:50:56.093Z'
|
||||
'npm:shelljs:20140723':
|
||||
- pm2 > shelljs:
|
||||
reason: None given
|
||||
expires: '2017-07-08T02:23:08.325Z'
|
||||
'npm:qs:20170213':
|
||||
- chokidar > fsevents > node-pre-gyp > request > qs:
|
||||
reason: None given
|
||||
expires: '2017-04-08T03:03:26.484Z'
|
||||
- pm2 > chokidar > fsevents > node-pre-gyp > request > qs:
|
||||
reason: None given
|
||||
expires: '2017-04-08T03:03:26.484Z'
|
||||
'npm:ms:20170412':
|
||||
- serve-favicon > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-15T01:17:20.759Z'
|
||||
compression > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-07-08T02:23:08.325Z'
|
||||
- express-session > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-15T01:17:20.759Z'
|
||||
pm2 > pm2-axon > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-07-08T02:23:08.325Z'
|
||||
- follow-redirects > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-15T01:17:20.759Z'
|
||||
socket.io > socket.io-adapter > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-07-08T02:23:08.325Z'
|
||||
- axios > follow-redirects > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-15T01:17:20.759Z'
|
||||
- pm2 > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-15T01:17:20.759Z'
|
||||
- body-parser > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-15T01:17:20.759Z'
|
||||
- express > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-15T01:17:20.759Z'
|
||||
- express > send > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-15T01:17:20.759Z'
|
||||
- express > serve-static > send > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-15T01:17:20.761Z'
|
||||
- express > send > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-15T01:17:20.761Z'
|
||||
- express > serve-static > send > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-15T01:17:20.761Z'
|
||||
- mongoose > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-15T01:17:20.761Z'
|
||||
- express-brute-mongoose > mongoose > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-15T01:17:20.761Z'
|
||||
- socket.io > socket.io-adapter > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-15T01:17:20.762Z'
|
||||
- compression > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-15T01:17:20.762Z'
|
||||
- mongoose > mquery > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-15T01:17:20.762Z'
|
||||
- express-brute-mongoose > mongoose > mquery > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-15T01:17:20.762Z'
|
||||
- pm2 > pm2-axon > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-15T01:17:20.762Z'
|
||||
- express > finalhandler > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-15T01:17:20.762Z'
|
||||
- socket.io > socket.io-client > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-15T01:17:20.762Z'
|
||||
- socket.io > socket.io-client > engine.io-client > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-15T01:17:20.762Z'
|
||||
- jsonwebtoken > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-15T01:17:20.762Z'
|
||||
- socket.io > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-15T01:17:20.762Z'
|
||||
- socket.io > socket.io-parser > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-15T01:17:20.763Z'
|
||||
- socket.io > socket.io-client > socket.io-parser > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-15T01:17:20.763Z'
|
||||
- socket.io > engine.io > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-15T01:17:20.763Z'
|
||||
- pm2 > pm2-axon-rpc > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-15T01:17:20.763Z'
|
||||
- pm2 > pmx > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-15T01:17:20.763Z'
|
||||
- pm2 > pmx > vxx > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-15T01:17:20.763Z'
|
||||
- mongoose > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-18T00:34:26.984Z'
|
||||
- express-brute-mongoose > mongoose > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-18T00:34:26.984Z'
|
||||
- socket.io > socket.io-adapter > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-18T00:34:26.984Z'
|
||||
- compression > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-18T00:34:26.985Z'
|
||||
- mongoose > mquery > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-18T00:34:26.985Z'
|
||||
- express-brute-mongoose > mongoose > mquery > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-18T00:34:26.985Z'
|
||||
- pm2 > pm2-axon > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-18T00:34:26.985Z'
|
||||
- socket.io > socket.io-client > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-18T00:34:26.985Z'
|
||||
- socket.io > socket.io-client > engine.io-client > debug > ms:
|
||||
reason: None given
|
||||
expires: '2017-06-18T00:34:26.985Z'
|
||||
patch: {}
|
||||
BIN
package-lock.json
generated
BIN
package-lock.json
generated
Binary file not shown.
12
package.json
12
package.json
@@ -10,9 +10,7 @@
|
||||
"build": "node fuse",
|
||||
"dev": "node fuse -d",
|
||||
"dev-configure": "node fuse -c",
|
||||
"test": "jest",
|
||||
"snyk-protect": "snyk protect",
|
||||
"__prepublish": "npm run snyk-protect"
|
||||
"test": "jest"
|
||||
},
|
||||
"bin": {
|
||||
"wiki": "wiki.js"
|
||||
@@ -59,7 +57,7 @@
|
||||
"express-brute": "1.0.1",
|
||||
"express-brute-mongoose": "~0.0.9",
|
||||
"express-session": "~1.15.3",
|
||||
"file-type": "^5.2.0",
|
||||
"file-type": "~5.2.0",
|
||||
"filesize.js": "~1.0.2",
|
||||
"follow-redirects": "~1.2.4",
|
||||
"fs-extra": "~3.0.1",
|
||||
@@ -95,7 +93,7 @@
|
||||
"multer": "~1.3.0",
|
||||
"node-2fa": "~1.1.2",
|
||||
"node-graceful": "~0.2.3",
|
||||
"ora": "^1.3.0",
|
||||
"ora": "~1.3.0",
|
||||
"passport": "~0.3.2",
|
||||
"passport-azure-ad-oauth2": "0.0.4",
|
||||
"passport-facebook": "~2.1.1",
|
||||
@@ -155,7 +153,6 @@
|
||||
"node-sass": "~4.5.3",
|
||||
"nodemon": "~1.11.0",
|
||||
"pug-lint": "~2.4.0",
|
||||
"snyk": "~1.36.2",
|
||||
"twemoji-awesome": "~1.0.6",
|
||||
"typescript": "~2.4.1",
|
||||
"uglify-es": "~3.0.24",
|
||||
@@ -176,6 +173,5 @@
|
||||
"**/?(*.)(spec|test).js?(x)"
|
||||
],
|
||||
"verbose": true
|
||||
},
|
||||
"snyk": true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
'use strict'
|
||||
|
||||
const colors = require('colors')
|
||||
|
||||
expect.extend({
|
||||
/**
|
||||
* Expect Snyk results to have no errors
|
||||
* @param {*} received Snyk results
|
||||
* @param {*} argument Arguments
|
||||
* @returns {object} Matcher result
|
||||
*/
|
||||
toPassSnyk (received, argument) {
|
||||
if (received && received.ok === false) {
|
||||
let errorMsgBuf = []
|
||||
for (let i = 0; i < received.vulnerabilities.length; i++) {
|
||||
const result = received.vulnerabilities[i]
|
||||
let vulnPath = result.from.slice(1).join(' > ')
|
||||
errorMsgBuf.push(colors.red(`└──[${result.severity}] ${result.packageName}\t${result.title}`))
|
||||
errorMsgBuf.push(colors.grey(`\t${vulnPath}`))
|
||||
}
|
||||
return {
|
||||
message: () => (errorMsgBuf.join(`\n`)),
|
||||
pass: false
|
||||
}
|
||||
}
|
||||
return {
|
||||
pass: true
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
describe('Security', () => {
|
||||
it('should pass Snyk test', () => {
|
||||
const snyk = require('snyk').test
|
||||
return snyk('./').then(report => {
|
||||
expect(report).toPassSnyk()
|
||||
})
|
||||
}, 30000)
|
||||
})
|
||||
Reference in New Issue
Block a user