diff --git a/apps/orchestrator/src/git/secret-scanner.service.spec.ts b/apps/orchestrator/src/git/secret-scanner.service.spec.ts index b211c4f..1b3655e 100644 --- a/apps/orchestrator/src/git/secret-scanner.service.spec.ts +++ b/apps/orchestrator/src/git/secret-scanner.service.spec.ts @@ -434,11 +434,21 @@ SECRET=replace-me // Remove read permissions await fs.chmod(testFile, 0o000); + // Check if we're running as root (where chmod 0o000 won't prevent reads) + const isRoot = process.getuid?.() === 0; + const result = await service.scanFile(testFile); - expect(result.scannedSuccessfully).toBe(false); - expect(result.scanError).toBeDefined(); - expect(result.hasSecrets).toBe(false); // Not "clean", just unscanned + if (isRoot) { + // Root can still read the file, so it will scan successfully + expect(result.scannedSuccessfully).toBe(true); + expect(result.hasSecrets).toBe(true); // Contains AWS key + } else { + // Non-root user cannot read the file + expect(result.scannedSuccessfully).toBe(false); + expect(result.scanError).toBeDefined(); + expect(result.hasSecrets).toBe(false); // Not "clean", just unscanned + } // Cleanup - restore permissions first await fs.chmod(testFile, 0o644); diff --git a/apps/web/src/app/demo/kanban/page.tsx b/apps/web/src/app/demo/kanban/page.tsx index a945885..6b1906e 100644 --- a/apps/web/src/app/demo/kanban/page.tsx +++ b/apps/web/src/app/demo/kanban/page.tsx @@ -6,6 +6,7 @@ import { useState } from "react"; import { KanbanBoard } from "@/components/kanban"; import type { Task } from "@mosaic/shared"; import { TaskStatus, TaskPriority } from "@mosaic/shared"; +import { ToastProvider } from "@mosaic/ui"; const initialTasks: Task[] = [ { @@ -173,23 +174,27 @@ export default function KanbanDemoPage(): ReactElement { }; return ( -
- Drag and drop tasks between columns to update their status. -
-- {tasks.length} total tasks •{" "} - {tasks.filter((t) => t.status === TaskStatus.COMPLETED).length} completed -
-+ Drag and drop tasks between columns to update their status. +
++ {tasks.length} total tasks •{" "} + {tasks.filter((t) => t.status === TaskStatus.COMPLETED).length} completed +
+