Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

fix(security): retain cooldown for native dependency updates

Rahmanf1be383da1e4
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 8f9bf52b..83b0788d 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -51,6 +51,8 @@ updates:
schedule:
interval: weekly
day: monday
+ cooldown:
+ default-days: 7
open-pull-requests-limit: 2
ignore:
- dependency-name: node-gyp
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index 1cfb3aad..914b5a2f 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -13,6 +13,7 @@ this is the *what*, and it is what Settings → About shows as “What's new”.
**Fixed**
+- `security` retain cooldown for native dependency updates
- `installer` lock isolated native build tool dependencies
- `proxy` finish portable managed-app loopback relay
- `workflows` pin private storage reads and atomic writes
diff --git a/docs/PROGRESS.md b/docs/PROGRESS.md
index 5b152582..b3966cc1 100644
--- a/docs/PROGRESS.md
+++ b/docs/PROGRESS.md
@@ -1,3 +1,11 @@
+## 2026-09-17 — Keep native dependency updates behind the existing cooldown
+
+The hosted Semgrep scan reproduced a missing seven-day cooldown on the new isolated
+node-gyp Dependabot entry. That entry now follows the same policy as the existing Bun
+and GitHub Actions entries. A regression checks every configured ecosystem, so adding
+another updater cannot silently omit the policy. Scanner rules and severity gates are
+unchanged; this corrects update configuration without changing the application runtime.
+
## 2026-09-17 — Lock the native build bootstrap without touching the runtime tree
The complete PR/branch audit found open Scorecard finding #136 in the user-local
diff --git a/scripts/dependabot-policy.test.ts b/scripts/dependabot-policy.test.ts
new file mode 100644
index 00000000..fa777d80
--- /dev/null
+++ b/scripts/dependabot-policy.test.ts
@@ -0,0 +1,21 @@
+import fs from "node:fs";
+import { parse } from "yaml";
+import { expect, it } from "vitest";
+
+type Update = {
+ "package-ecosystem": string;
+ directory: string;
+ cooldown?: { "default-days"?: number };
+};
+
+it("keeps every Dependabot ecosystem behind the seven-day version-update cooldown", () => {
+ const config = parse(fs.readFileSync(".github/dependabot.yml", "utf8")) as { version: number; updates: Update[] };
+ expect(config.version).toBe(2);
+ expect(config.updates.length).toBeGreaterThan(0);
+ for (const update of config.updates) {
+ const label = `${update["package-ecosystem"]}:${update.directory}`;
+ const days = update.cooldown?.["default-days"];
+ expect(Number.isInteger(days), `${label} must declare cooldown.default-days`).toBe(true);
+ expect(days, `${label} must retain the minimum cooldown`).toBeGreaterThanOrEqual(7);
+ }
+});