Skip to content

dependabot: group security updates and cover /studio/frontend npm advisories - #5372

Merged
danielhanchen merged 1 commit into
mainfrom
dependabot-group-security-updates
May 11, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
dependabot-group-security-updates

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

We currently have 11 open Dependabot PRs (#5362, #5363, #5364, #5365, #5366, #5367, #5368, #5369, #5343, #5148, #4916). Five are the normal weekly grouped version bumps (one per ecosystem). The other six are individual security advisories that bypassed the existing group config and opened one PR per affected package.

Per the Dependabot reference, every `groups:` entry has an implicit `applies-to: version-updates`. To batch security updates as well, you need a sibling group with `applies-to: security-updates`. This PR adds those siblings to every ecosystem, plus a new `npm` entry covering `/studio/frontend` for cross-ecosystem advisories.

Why this matters

Changes

  1. Sibling `*-security` groups for every existing ecosystem (`actions`, `bun-frontend`, `npm-oxc-validator`, `python`, `cargo-tauri`) with `applies-to: security-updates` and the same `patterns: ["*"]` coverage. Security advisories now batch into one PR per ecosystem per week alongside the version-update group.
  2. New `npm` entry at `/studio/frontend` with `open-pull-requests-limit: 0` (suppress version-update PRs since `bun` handles those) and a `npm-frontend-security` group. Security advisories on npm packages in that directory now batch into one PR. Per the docs, `open-pull-requests-limit` only governs version updates; security updates have a separate internal limit of 10 and still flow through.

Out of scope

This does NOT retroactively regroup PRs already open. The existing 11 are unaffected and should be triaged separately:

After this PR lands, next week's cycle should produce at most five PRs (one per ecosystem) regardless of whether CVEs are involved.

Test plan

  • Confirm YAML parses with `python3 -c "import yaml; yaml.safe_load(open('.github/dependabot.yml'))"`. (Validated locally.)
  • After merge, manually trigger a Dependabot check from the repo's Insights -> Dependency graph -> Dependabot page; confirm no validation errors against the new config.
  • On the next weekly tick (or via manual `@dependabot check-now` flow), confirm that a freshly-opened security advisory lands inside the `*-security` group PR for its ecosystem rather than opening individually.

…isories

Every groups entry has an implicit applies-to: version-updates, which
means security advisories bypass the group config and open one PR per
affected package. The 11-PR backlog this week was driven by exactly
this: four /studio/src-tauri cargo advisories (rustls-webpki, tauri,
rand, openssl) opened individually instead of joining the cargo-tauri
group PR, and one /studio/frontend npm group PR (hono + ip-address)
opened outside the bun config because GitHub fires npm-package
advisories under the npm_and_yarn ecosystem regardless of which
package manager actually owns the lockfile.

Two changes:

1. Sibling groups with applies-to: security-updates for each existing
   ecosystem (actions, bun, npm-oxc-validator, python, cargo-tauri).
   Same patterns: ["*"] coverage, so security advisories batch into a
   single PR per ecosystem per week alongside the version-update
   group.

2. New npm entry pointed at /studio/frontend with
   open-pull-requests-limit: 0 (suppress version-update PRs; bun
   handles those) but with a security-updates group so future
   hono-style advisories land in one batched PR instead of one PR
   per package.

Doesn't retroactively regroup PRs already open; the existing 11 are
unaffected and merge as-is.
@danielhanchen
danielhanchen force-pushed the dependabot-group-security-updates branch from 32f8cac to 90e9c71 Compare May 11, 2026 12:23

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Dependabot configuration to group security updates across various ecosystems, including GitHub Actions, Bun, NPM, Pip, and Cargo. It also adds a specific NPM entry for the frontend directory with a zero pull request limit to ensure security advisories are batched correctly without triggering redundant version updates. I have no feedback to provide.

@danielhanchen
danielhanchen merged commit a646287 into main May 11, 2026
7 checks passed
@danielhanchen
danielhanchen deleted the dependabot-group-security-updates branch May 11, 2026 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant