Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Apply the locked formatter to security reporting checks

pulse-triage[bot]cf23c8b0111d
diff --git a/frontend-modern/src/features/docs/__tests__/securityReportingGuide.test.ts b/frontend-modern/src/features/docs/__tests__/securityReportingGuide.test.ts
index 4a2e534b46..a0d3113e6f 100644
--- a/frontend-modern/src/features/docs/__tests__/securityReportingGuide.test.ts
+++ b/frontend-modern/src/features/docs/__tests__/securityReportingGuide.test.ts
@@ -30,20 +30,32 @@ describe('private vulnerability reporting guidance', () => {
const rendered = article();
const heading = rendered.querySelector('#reporting-a-vulnerability')!;
const paragraphs: string[] = [];
- for (let next = heading.nextElementSibling; next && next.tagName !== 'HR'; next = next.nextElementSibling) {
+ for (
+ let next = heading.nextElementSibling;
+ next && next.tagName !== 'HR';
+ next = next.nextElementSibling
+ ) {
paragraphs.push(next.textContent ?? '');
}
const text = paragraphs.join(' ').replace(/\s+/g, ' ');
expect(text).toContain('Do not open a public issue or discussion for these reports.');
expect(text).toMatch(/affected Pulse and agent versions, if known/);
- expect(text).toMatch(/do not send live credentials, private keys, full diagnostics or configuration exports/);
+ expect(text).toMatch(
+ /do not send live credentials, private keys, full diagnostics or configuration exports/,
+ );
expect(text).toContain('Do not repeat a risky action just to make a report.');
expect(text).toMatch(/Removing a public copy is not credential revocation/);
expect(text).toContain('The security address is not a general support route.');
expect(
- rendered.querySelector('a[href="/docs/TROUBLESHOOTING#if-you-already-posted-private-information"]'),
+ rendered.querySelector(
+ 'a[href="/docs/TROUBLESHOOTING#if-you-already-posted-private-information"]',
+ ),
+ ).not.toBeNull();
+ expect(
+ rendered.querySelector('a[href="https://github.com/rcourtman/Pulse/issues"]'),
+ ).not.toBeNull();
+ expect(
+ rendered.querySelector('a[href="https://github.com/rcourtman/Pulse/discussions"]'),
).not.toBeNull();
- expect(rendered.querySelector('a[href="https://github.com/rcourtman/Pulse/issues"]')).not.toBeNull();
- expect(rendered.querySelector('a[href="https://github.com/rcourtman/Pulse/discussions"]')).not.toBeNull();
});
});