diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..a00a400c --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,38 @@ +# cooldown.default-days holds back any newly published version until it is at +# least N days old, so a compromised release (supply-chain attack) is noticed +# and yanked before we pull it in. Security updates bypass the cooldown. It +# only gates Dependabot-driven updates, not a manual `bun update`. +# +# Left out on purpose: the `moq/` submodule and flake inputs move together by +# hand (see CONTRIBUTING.md, "MoQ updates"). +# Alerts and security updates are repository settings, enforced by dotfiles' +# `repo-settings`; this file enables neither. + +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + cooldown: + default-days: 7 + groups: + github-actions: + patterns: + - "*" + + # One root lockfile covers the app, the API Worker, and the moq/js workspaces. + - package-ecosystem: "bun" + directory: "/" + schedule: + interval: "weekly" + cooldown: + default-days: 7 + groups: + bun: + patterns: + - "*" + ignore: + # Pinned to the Nix shell's Playwright driver, so it moves with a nixpkgs + # bump rather than ahead of it. + - dependency-name: "playwright" diff --git a/quest/m1/dependency-alerts.md b/quest/m1/dependency-alerts.md deleted file mode 100644 index b7b00d64..00000000 --- a/quest/m1/dependency-alerts.md +++ /dev/null @@ -1,16 +0,0 @@ -# [S] Dependency advisory alerts - -## Goal - -A security advisory in a Hang dependency surfaces within days, not at the next milestone's deps audit: as a fix PR when a patched release exists, otherwise as an alert the maintainer is notified of. - -## Plan - -The first deps audit found `hono` (the API Worker) six patch releases behind with middleware-bypass advisories and `drizzle-orm` behind a SQL-injection fix; nothing flagged them in between. -`moq/` covers the same gap with `.github/dependabot.yml` (weekly grouped updates, a 7-day cooldown that security updates bypass) plus a landing workflow and a nightly `just js audit`. - -Decided 2026-11-26 (maintainer, /quest-run): ✅ (a) Dependabot version and security updates, plus alerts (rejected: (b) a nightly `bun audit --prod` workflow on `main`, (c) rely on the per-milestone deps audit). -Add `.github/dependabot.yml` for the `bun` (root) and `github-actions` ecosystems, weekly, grouped, `cooldown.default-days: 7`, ignoring `playwright` (pinned to the Nix shell's driver) and leaving the `moq/` submodule and flake inputs out, since they move together by hand. -Dependabot alerts and security updates are both disabled on this repository today (moq has both on), and `dependabot.yml` enables neither, so turn them on too, through dotfiles' `repo-settings` so every repository gets the same standard rather than a one-off toggle. -An advisory with no patched release gets an alert but no PR; the next deps audit decides whether to replace the package or accept it. -Land its PRs through `/quest-run` like any other until Hang adopts moq's bot landing.