@cclabsnz/sf-audit 1.15.0 → 1.15.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
@@ -11,6 +11,18 @@ published note and carries the signed provenance attestation and CycloneDX SBOM
11
11
 
12
12
  Merged to `main`, not yet released.
13
13
 
14
+ ## [v1.15.1](https://github.com/cclabsnz/sf-audit-plugin/releases/tag/v1.15.1) — 2026-10-06
15
+
16
+ The executive and incident reports now say which tool produced them. No change to any check, flag or finding.
17
+
18
+ ### Changed
19
+
20
+ - **The executive and incident reports now credit the tool.** One line at the end, "Prepared with
21
+ sf-audit, an open-source, read-only Salesforce security tool", matching the credit the technical
22
+ reports already carry. The link is tagged with the report type only (`executive-report` or
23
+ `incident-report`) and never the org or client. It is a plain hyperlink, so opening a report
24
+ still fetches nothing.
25
+
14
26
  ## [v1.15.0](https://github.com/cclabsnz/sf-audit-plugin/releases/tag/v1.15.0) — 2026-10-06
15
27
 
16
28
  One new check, and four existing checks that stop reporting conclusions they had not established.
@@ -1,6 +1,7 @@
1
1
  // src/incident/render/html.ts
2
2
  import { esc, fontFaceCss } from '@cclabsnz/sf-core';
3
3
  import { chartJsScript } from '../../renderers/chartAsset.js';
4
+ import { toolCreditHtml } from '../../renderers/toolCredit.js';
4
5
  import { CLASSIFICATION_LABEL, RESULT_LABEL, auraCollectedDays, coveredDays } from './labels.js';
5
6
  import { NOTHING_ASSESSED, WITHIN_BASELINE, reportLimits, waveSentence } from './markdown.js';
6
7
  const RESULT_TONE = { 'access-gained': 'high', 'content-returned': 'medium', 'no-evidence': 'low', 'not-assessed': 'muted' };
@@ -104,6 +105,7 @@ th.n,td.n{text-align:right}td.n{font-variant-numeric:tabular-nums}td.mono{font-f
104
105
  .key{display:inline-block;width:12px;height:12px;background:rgba(181,71,8,0.18);border:1px solid rgba(181,71,8,0.5);vertical-align:-1px;margin-right:4px}
105
106
  .chartbox{position:relative;border:1px solid var(--border);border-radius:8px;padding:12px;background:var(--bgalt);break-inside:avoid}
106
107
  .chartbox canvas{display:block;width:100%}
108
+ .credit{margin-top:40px;font-size:12px}.credit a{color:inherit}
107
109
  .method{padding-left:18px}.method li{margin-bottom:4px;max-width:70ch}
108
110
  .index{list-style:none;margin:8px 0 0;padding:0;columns:2;column-gap:32px;font-size:13px}
109
111
  .index li{display:flex;gap:10px;padding:4px 0;border-bottom:1px solid var(--border);break-inside:avoid}.index b{font-family:var(--mono);font-size:12px;color:var(--primary);min-width:34px;font-weight:600}
@@ -131,6 +133,7 @@ ${r.waves.length === 0 ? `<p>${esc(NOTHING_ASSESSED)}</p>` : r.withinBaseline ?
131
133
  ${coverage ? `<h3>Gaps in collection</h3><div class="tablewrap"><table><thead><tr><th>Type</th><th>Day</th><th>Status</th></tr></thead><tbody>${coverage}</tbody></table></div>` : ''}
132
134
  <p class="meta">Bundle manifest sha256 <code>${esc(r.manifestSha256)}</code></p>
133
135
  <h3>Evidence index</h3><ul class="index">${evidenceIndex}</ul></section>
136
+ <p class="credit muted">${toolCreditHtml('incident-report')}</p>
134
137
  </div>
135
138
  <script>${chartJsScript()}</script>
136
139
  <script>(function(){var d=${chart};var c=document.getElementById('tl');if(!c||!window.Chart)return;
@@ -1,3 +1,4 @@
1
+ import { toolCreditMarkdown } from '../../renderers/toolCredit.js';
1
2
  import { CLASSIFICATION_LABEL, NOT_COLLECTED, RESULT_LABEL, auraCollectedDays, coveredDays } from './labels.js';
2
3
  /** Makes an org-sourced value safe to interpolate into Markdown (tables, headings, raw HTML). */
3
4
  export const md = (s) => s.replace(/\\/g, '\\\\').replace(/\r?\n/g, ' ').replace(/\|/g, '\\|').replace(/</g, '&lt;');
@@ -86,6 +87,7 @@ export function renderMarkdown(r, ev) {
86
87
  L.push('', '## Evidence index', '');
87
88
  for (const t of ev.tables)
88
89
  L.push(`- **${t.id}** ${t.title} (${t.rows.length} rows)`);
90
+ L.push('', '---', '', toolCreditMarkdown('incident-report'));
89
91
  return L.join('\n') + '\n';
90
92
  }
91
93
  //# sourceMappingURL=markdown.js.map
@@ -1,6 +1,7 @@
1
1
  import { esc } from '@cclabsnz/sf-core';
2
2
  import { fontFaceCss } from '@cclabsnz/sf-core';
3
3
  import { getCheckMeta } from '../findings/CheckMeta.js';
4
+ import { toolCreditHtml } from './toolCredit.js';
4
5
  import { selectPriorities } from '../report/ExecutivePriorities.js';
5
6
  import { buildRoadmap } from '../report/RemediationRoadmap.js';
6
7
  import { buildComplianceMatrix } from '../report/ComplianceMatrix.js';
@@ -202,7 +203,7 @@ ${tier('Projects', 'weeks', roadmap.project)}`;
202
203
  ? ` · <a href="https://${esc(b.website.replace(/^https?:\/\//, ''))}">${esc(b.website.replace(/^https?:\/\//, ''))}</a>`
203
204
  : '';
204
205
  return `<footer><span class="label">Scope &amp; Liability</span>
205
- Read-only, point-in-time configuration review: not a penetration test, not a code audit. The grade is a prioritisation aid, not a certification. Validate findings before remediation. © ${new Date().getFullYear()} ${esc(b.firmName)} · ${esc(b.contact)}${site}</footer>`;
206
+ Read-only, point-in-time configuration review: not a penetration test, not a code audit. The grade is a prioritisation aid, not a certification. Validate findings before remediation. © ${new Date().getFullYear()} ${esc(b.firmName)} · ${esc(b.contact)}${site}<br>${toolCreditHtml('executive-report')}</footer>`;
206
207
  }
207
208
  }
208
209
  //# sourceMappingURL=ClientReportRenderer.js.map
@@ -0,0 +1,11 @@
1
+ /**
2
+ * One-line credit for the reports that travel beyond the person who ran the tool: the executive
3
+ * report and the incident report. The link carries campaign tags so visits arriving from a
4
+ * shared report can be counted. It names the report type only, never the org or the client.
5
+ * A plain hyperlink: nothing is fetched when a report is opened.
6
+ */
7
+ export type CreditedReport = 'executive-report' | 'incident-report';
8
+ export declare function toolCreditUrl(report: CreditedReport): string;
9
+ export declare function toolCreditHtml(report: CreditedReport): string;
10
+ export declare function toolCreditMarkdown(report: CreditedReport): string;
11
+ //# sourceMappingURL=toolCredit.d.ts.map
@@ -0,0 +1,12 @@
1
+ const TOOLS_PAGE = 'https://www.softwareinsights.dev/tools/';
2
+ const CREDIT_TEXT = 'an open-source, read-only Salesforce security tool';
3
+ export function toolCreditUrl(report) {
4
+ return `${TOOLS_PAGE}?utm_source=sf-audit&utm_medium=report&utm_campaign=${report}`;
5
+ }
6
+ export function toolCreditHtml(report) {
7
+ return `Prepared with <a href="${toolCreditUrl(report)}">sf-audit</a>, ${CREDIT_TEXT}.`;
8
+ }
9
+ export function toolCreditMarkdown(report) {
10
+ return `Prepared with [sf-audit](${toolCreditUrl(report)}), ${CREDIT_TEXT}.`;
11
+ }
12
+ //# sourceMappingURL=toolCredit.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cclabsnz/sf-audit",
3
- "version": "1.15.0",
3
+ "version": "1.15.1",
4
4
  "description": "Read-only Salesforce security audit for the sf CLI: 93 checks, attack-chain correlation, A-F risk grading, compliance mapping, free EventLogFile capture, and Guest User Anomaly investigation.",
5
5
  "keywords": [
6
6
  "salesforce",