@eurekadevsecops/radar 1.4.2 → 1.4.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/depscan.sarif ADDED
@@ -0,0 +1,70 @@
1
+ {
2
+ "version": "2.1.0",
3
+ "$schema": "https://json.schemastore.org/sarif-2.1.0.json",
4
+ "runs": [
5
+ {
6
+ "tool": {
7
+ "driver": {
8
+ "name": "owasp-depscan",
9
+ "semanticVersion": "5.5.0",
10
+ "informationUri": "https://github.com/owasp-dep-scan/dep-scan",
11
+ "properties": {
12
+ "protocol_version": "v1.0.0",
13
+ "scanner_name": "owasp-depscan",
14
+ "scanner_version": "5.5.0",
15
+ "db": "https://github.com/AppThreat/vulnerability-db",
16
+ "scan_mode": "source"
17
+ },
18
+ "rules": [
19
+ {
20
+ "id": "CVE-2022-33987/pkg:npm/got@9.6.0",
21
+ "shortDescription": {
22
+ "text": "Vulnerable pkg: npm/got@9.6.0\nCVE: CVE-2022-33987\nFix: Update to 11.8.5 or later\n\ndepscan:insights: Indirect dependency\ndepscan:prioritized: false\naffectedVersionRange: got@<11.8.5\n"
23
+ },
24
+ "fullDescription": {
25
+ "text": "# Got allows a redirect to a UNIX socket\nThe got package before 11.8.5 and 12.1.0 for Node.js allows a redirect to a UNIX socket.\nUpgrade to version 11.8.5 or later"
26
+ },
27
+ "help": {
28
+ "text": "Update to 11.8.5 or later"
29
+ },
30
+ "helpUri": "https://nvd.nist.gov/vuln/detail/CVE-2022-33987",
31
+ "properties": {
32
+ "tags": [
33
+ "CVE-2022-33987"
34
+ ]
35
+ }
36
+ }
37
+
38
+ ]
39
+ }
40
+ },
41
+ "results": [
42
+ {
43
+ "ruleId": "CVE-2022-33987/pkg:npm/got@9.6.0",
44
+ "level": "warning",
45
+ "message": {
46
+ "text": "Vulnerability CVE-2022-33987 in pkg npm/got@9.6.0"
47
+ },
48
+ "locations": [
49
+ {
50
+ "physicalLocation": {
51
+ "artifactLocation": {
52
+ "uri": "lockfile",
53
+ "uriBaseId": "%SRCROOT%"
54
+ },
55
+ "region": {
56
+ "startLine": 1
57
+ }
58
+ },
59
+ "message": {
60
+ "text": "Vulnerability CVE-2022-33987 in pkg npm/got@9.6.0"
61
+ }
62
+ }
63
+ ]
64
+ }
65
+
66
+
67
+ ]
68
+ }
69
+ ]
70
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eurekadevsecops/radar",
3
- "version": "1.4.2",
3
+ "version": "1.4.4",
4
4
  "description": "Radar is an open-source orchestrator of security scanners.",
5
5
  "homepage": "https://www.eurekadevsecops.com/radar",
6
6
  "keywords": [
@@ -5,5 +5,3 @@
5
5
 
6
6
  set -e
7
7
  docker run --rm -v $1:/app -v $2:/input -v $3:/output ghcr.io/eurekadevsecops/radar-depscan 2>&1
8
- cp $3/depscan/depscan.sarif $3/depscan.sarif
9
- rm -rf $3/depscan/
@@ -196,7 +196,7 @@ module.exports = {
196
196
  log()
197
197
  SARIF.visualizations.display_findings(summary, args.FORMAT, log)
198
198
  if (outfile) log(`Findings exported to ${outfile}`)
199
- SARIF.visualizations.display_totals(summary, args.FORMAT, log)
199
+ SARIF.visualizations.display_totals(summary, args.FORMAT, log, telemetry.enabled && scanID)
200
200
  }
201
201
 
202
202
  // Determine the correct exit code.
@@ -1,5 +1,5 @@
1
1
  const levels = require('../../localization/levels')
2
- module.exports = async (summary, format, log) => {
2
+ module.exports = async (summary, format, log, baselined) => {
3
3
  const total = summary.errors.length + summary.warnings.length + summary.notes.length
4
- log(`${total} ${total === 1 ? levels[format].total.issue : levels[format].total.issues}: ${summary.errors.length} ` + `${levels[format].total.error}`.red.bold + `, ${summary.warnings.length} ` + `${levels[format].total.warning}`.yellow.bold + `, ${summary.notes.length} ` + `${levels[format].total.note}` + '.')
4
+ log(`${total} ` + `${baselined ? 'new ' : ''}`.bold + `${total === 1 ? levels[format].total.issue : levels[format].total.issues}: ${summary.errors.length} ` + `${levels[format].total.error}`.red.bold + `, ${summary.warnings.length} ` + `${levels[format].total.warning}`.yellow.bold + `, ${summary.notes.length} ` + `${levels[format].total.note}` + '.')
5
5
  }