@profullstack/threatcrush 0.6.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/daemon.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11258,6 +11258,7 @@ function meetsFailThreshold(findings, threshold) {
|
|
|
11258
11258
|
// src/scan/sarif.ts
|
|
11259
11259
|
var import_node_crypto = require("crypto");
|
|
11260
11260
|
var import_node_path4 = require("path");
|
|
11261
|
+
var FINGERPRINT_KEY = "threatcrush/contentHash/v1";
|
|
11261
11262
|
function fingerprintOf(finding) {
|
|
11262
11263
|
const content = finding.excerpt.replace(/\s+/g, " ").trim();
|
|
11263
11264
|
return (0, import_node_crypto.createHash)("sha256").update(`${finding.ruleId}
|
|
@@ -11356,7 +11357,7 @@ ${finding.consequence}` : `**${finding.title}**`
|
|
|
11356
11357
|
}
|
|
11357
11358
|
],
|
|
11358
11359
|
partialFingerprints: {
|
|
11359
|
-
|
|
11360
|
+
[FINGERPRINT_KEY]: fingerprintOf(finding)
|
|
11360
11361
|
},
|
|
11361
11362
|
properties: {
|
|
11362
11363
|
severity: finding.severity,
|