grepleaks 1.3.3 → 1.3.4
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/bin/grepleaks.js +11 -11
- package/package.json +1 -1
package/bin/grepleaks.js
CHANGED
|
@@ -193,17 +193,17 @@ function generateReport(result) {
|
|
|
193
193
|
|
|
194
194
|
**Date:** ${date} ${time}
|
|
195
195
|
**Score:** ${result.security_score || 0}/100
|
|
196
|
-
**Grade:** ${result.grade || 'N/A'}
|
|
196
|
+
**Grade:** ${result.grade_level || result.grade || 'N/A'}
|
|
197
197
|
**Total Findings:** ${result.total_findings || 0}
|
|
198
198
|
|
|
199
199
|
## Summary
|
|
200
200
|
|
|
201
201
|
| Severity | Count |
|
|
202
202
|
|----------|-------|
|
|
203
|
-
| Critical | ${result.critical_count || 0} |
|
|
204
|
-
| High | ${result.high_count || 0} |
|
|
205
|
-
| Medium | ${result.medium_count || 0} |
|
|
206
|
-
| Low | ${result.low_count || 0} |
|
|
203
|
+
| Critical | ${result.critical_findings || result.critical_count || 0} |
|
|
204
|
+
| High | ${result.high_findings || result.high_count || 0} |
|
|
205
|
+
| Medium | ${result.medium_findings || result.medium_count || 0} |
|
|
206
|
+
| Low | ${result.low_findings || result.low_count || 0} |
|
|
207
207
|
|
|
208
208
|
`;
|
|
209
209
|
|
|
@@ -371,13 +371,13 @@ ${colors.bold} SECURITY SCAN RESULTS${colors.reset}
|
|
|
371
371
|
${colors.bold}========================================${colors.reset}
|
|
372
372
|
|
|
373
373
|
Score: ${colors.bold}${result.security_score || 0}/100${colors.reset}
|
|
374
|
-
Grade: ${colors.bold}${result.grade || 'N/A'}${colors.reset}
|
|
374
|
+
Grade: ${colors.bold}${result.grade_level || result.grade || 'N/A'}${colors.reset}
|
|
375
375
|
|
|
376
376
|
Findings:
|
|
377
|
-
Critical: ${colors.red}${result.critical_count || 0}${colors.reset}
|
|
378
|
-
High: ${colors.yellow}${result.high_count || 0}${colors.reset}
|
|
379
|
-
Medium: ${colors.blue}${result.medium_count || 0}${colors.reset}
|
|
380
|
-
Low: ${result.low_count || 0}
|
|
377
|
+
Critical: ${colors.red}${result.critical_findings || result.critical_count || 0}${colors.reset}
|
|
378
|
+
High: ${colors.yellow}${result.high_findings || result.high_count || 0}${colors.reset}
|
|
379
|
+
Medium: ${colors.blue}${result.medium_findings || result.medium_count || 0}${colors.reset}
|
|
380
|
+
Low: ${result.low_findings || result.low_count || 0}
|
|
381
381
|
|
|
382
382
|
${colors.bold}========================================${colors.reset}
|
|
383
383
|
`);
|
|
@@ -391,7 +391,7 @@ ${colors.bold}========================================${colors.reset}
|
|
|
391
391
|
}
|
|
392
392
|
|
|
393
393
|
// Exit with error if critical findings
|
|
394
|
-
if ((result.critical_count || 0) > 0) {
|
|
394
|
+
if ((result.critical_findings || result.critical_count || 0) > 0) {
|
|
395
395
|
logError('Critical vulnerabilities found!');
|
|
396
396
|
process.exit(1);
|
|
397
397
|
}
|