@cclabsnz/sf-audit 1.18.0 → 1.18.1

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/CHANGELOG.md CHANGED
@@ -9,6 +9,23 @@ published note and carries the signed provenance attestation and CycloneDX SBOM
9
9
 
10
10
  ## [Unreleased]
11
11
 
12
+ ## [v1.18.1](https://github.com/cclabsnz/sf-audit-plugin/releases/tag/v1.18.1) — 2026-10-22
13
+
14
+ The HTML report's dashboard now agrees with the score and the executive report.
15
+
16
+ ### Fixed
17
+
18
+ - The HTML report's dashboard counted passed and inconclusive findings, so it showed 66 LOW where
19
+ the executive report showed 2. The donut and severity cards now count open findings only, and
20
+ the executive report's severity chips no longer count waived findings.
21
+ - The grade reason and coverage note in the HTML report were squeezed into a narrow column beside
22
+ the score gauge. They now sit below it.
23
+
24
+ ### Changed
25
+
26
+ - Unattended installs use `sf plugins trust allowlist add` (sf CLI 2.135.0 or later) in place of
27
+ the `jq` script.
28
+
12
29
  ## [v1.18.0](https://github.com/cclabsnz/sf-audit-plugin/releases/tag/v1.18.0) — 2026-10-21
13
30
 
14
31
  Evidence coverage on a live org rises from about 58% to 96–97%, and grades and attack chains now
package/README.md CHANGED
@@ -38,19 +38,15 @@ third-party plugin can satisfy it. Answer `y`.
38
38
 
39
39
  ### Unattended installs (CI/CD)
40
40
 
41
- To install in CI/CD without the interactive prompt, add the plugin to the CLI allowlist first (the merge step needs `jq`):
41
+ To install in CI/CD without the interactive prompt, allowlist the plugin first (sf CLI 2.135.0 or later):
42
42
 
43
43
  ```bash
44
- mkdir -p ~/.config/sf
45
- if [ -f ~/.config/sf/unsignedPluginAllowList.json ]; then
46
- jq '. + ["@cclabsnz/sf-audit"] | unique' ~/.config/sf/unsignedPluginAllowList.json > ~/.config/sf/unsignedPluginAllowList.json.tmp && mv ~/.config/sf/unsignedPluginAllowList.json.tmp ~/.config/sf/unsignedPluginAllowList.json
47
- else
48
- echo '["@cclabsnz/sf-audit"]' > ~/.config/sf/unsignedPluginAllowList.json
49
- fi
50
-
44
+ sf plugins trust allowlist add --name @cclabsnz/sf-audit
51
45
  sf plugins install @cclabsnz/sf-audit
52
46
  ```
53
47
 
48
+ Older CLIs have no `allowlist` command; [docs/INSTALL.md](docs/INSTALL.md) shows the file to write instead.
49
+
54
50
  ### Verifying provenance
55
51
 
56
52
  Every release is published from GitHub Actions with a signed npm provenance attestation that
@@ -120,7 +120,7 @@ ${this.footer(b)}
120
120
  const meta = [r.orgName, r.orgType, r.orgId, r.generatedAt.toISOString().slice(0, 10)]
121
121
  .map((s) => esc(String(s))).join(' · ');
122
122
  const counts = SEV_ORDER
123
- .map((l) => ({ l, n: r.findings.filter((f) => f.riskLevel === l && !f.passed && !f.inconclusive).length }))
123
+ .map((l) => ({ l, n: r.findings.filter((f) => f.riskLevel === l && !f.passed && !f.inconclusive && !f.waived).length }))
124
124
  .filter((c) => c.n > 0)
125
125
  .map((c) => this.chip(c.l, `${c.n} ${c.l}`)).join('');
126
126
  const prepared = b.preparedFor ? ` for ${esc(b.preparedFor)}` : '';
@@ -77,9 +77,14 @@ function buildDonutSvg(counts) {
77
77
  <circle cx="${cx}" cy="${cy}" r="${R}" fill="none" stroke="#21262d" stroke-width="14" />
78
78
  ${arcs.join('')}
79
79
  <text x="${cx}" y="${cy - 5}" text-anchor="middle" fill="#f0f6fc" font-size="20" font-weight="700" font-family="system-ui,sans-serif">${total}</text>
80
- <text x="${cx}" y="${cy + 14}" text-anchor="middle" fill="#8b949e" font-size="10" font-family="system-ui,sans-serif">findings</text>
80
+ <text x="${cx}" y="${cy + 14}" text-anchor="middle" fill="#8b949e" font-size="10" font-family="system-ui,sans-serif">open findings</text>
81
81
  </svg>`;
82
82
  }
83
+ /** Open findings per severity: what the score and the executive report count (RULE-079). */
84
+ function openCounts(result) {
85
+ const open = result.findings.filter((f) => !f.passed && !f.inconclusive && !f.notAssessed && !f.waived);
86
+ return Object.fromEntries(['CRITICAL', 'HIGH', 'MEDIUM', 'LOW'].map((l) => [l, open.filter((f) => f.riskLevel === l).length]));
87
+ }
83
88
  function buildDashboard(result, counts) {
84
89
  const m = result.metrics;
85
90
  const gradeColor = GRADE_COLOR[result.grade] ?? '#64748b';
@@ -295,6 +300,8 @@ ${firaFontFaceCss()}
295
300
  align-items: center;
296
301
  justify-content: center;
297
302
  }
303
+ /* The grade reason and coverage note sit under the gauge, not squeezed beside it. */
304
+ .dash-score-panel { flex-direction: column; text-align: center; }
298
305
 
299
306
  /* Score ring */
300
307
  .gauge-wrap { display: flex; align-items: center; justify-content: center; }
@@ -551,7 +558,7 @@ ${firaFontFaceCss()}
551
558
  </div>
552
559
  </div>
553
560
 
554
- ${buildDashboard(result, counts)}
561
+ ${buildDashboard(result, openCounts(result))}
555
562
 
556
563
  ${attackPathsHtml}
557
564
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cclabsnz/sf-audit",
3
- "version": "1.18.0",
3
+ "version": "1.18.1",
4
4
  "description": "Read-only Salesforce security audit for the sf CLI: 109 checks, attack-chain correlation, A-F risk grading, compliance mapping, free EventLogFile capture, and Guest User Anomaly investigation.",
5
5
  "keywords": [
6
6
  "salesforce",