Skip to content

Group Dependabot security updates and apply the main title prefix - #16661

Draft
Vladimir Morozov (vmoroz) wants to merge 1 commit into
microsoft:mainfrom
vmoroz:PR/dependabot-security-updates
Draft

Vladimir Morozov (vmoroz) wants to merge 1 commit into
microsoft:mainfrom
vmoroz:PR/dependabot-security-updates

Conversation

@vmoroz

@vmoroz Vladimir Morozov (vmoroz) commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Description

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • Automation (AI changes or Github Actions to reduce effort of manual tasks)

Why

Dependabot security updates on main open one PR per package, without the 📦 [main] title prefix and with default labels (#16657, #16658, #16659). Version updates are grouped and prefixed as expected.

Since #15894, the main npm entry sets target-branch: "main". GitHub doesn't apply an entry's options to security updates when it sets target-branch, so security updates fall back to defaults: no prefix, no group, default labels. Groups also apply only to version updates unless they set applies-to: security-updates.

What

Main npm entry

  • Drop target-branch: "main". Without it, the entry targets the default branch (main), so version updates don't change and security updates get the 📦 [main] prefix and the dependencies label.
  • Add a security-updates group, so security updates arrive as one PR: 📦 [main]: Bump the security-updates group ….

GitHub Actions entry

  • Add the same security-updates group. The entry already applies its 🎬 [main] prefix to security updates; this only groups them.

The stable-branch entries are unchanged; security updates only target the default branch. The main entry's ignore rules use update-types, which don't filter security updates. lockfile-only now also applies to npm security updates on main, matching the version updates; the recent security PRs changed only yarn.lock.

Screenshots

Not applicable.

Testing

The config validates against the SchemaStore Dependabot schema. GitHub checks it only after merge: the Dependabot check on the merge commit should pass, and the next security update on main should open one prefixed, grouped PR.

Changelog

Should this change be included in the release notes: no

Group Dependabot security updates and give them the usual title prefix.

Microsoft Reviewers: Open in CodeFlow

Dependabot applies an entry's options to security updates only when the entry sets no target-branch. Dropping target-branch from the main npm entry lets security PRs on main use its prefix and labels, and a security-updates group batches them into one PR. GitHub Actions security updates are grouped the same way.
Copilot AI balanced review requested due to automatic review settings November 24, 2026 21:09
@vmoroz
Vladimir Morozov (vmoroz) marked this pull request as draft November 24, 2026 21:11

Copilot AI 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.

🟡 Changes recommended

Removing target-branch causes security updates to inherit lockfile-only, preventing Dependabot from opening fixes for exact-pinned dependencies that require manifest changes.

1 open issue
What changed in this PR

Updates React Native Windows’ Dependabot configuration to group security updates and apply the existing main-branch title prefix and labels, addressing the separate, unprefixed PRs seen in #16657–#16659.

Changes:

  • Removes the explicit npm target-branch: "main" so security updates inherit the default-branch entry’s options.
  • Adds separate security-update groups for npm and GitHub Actions.
  • Leaves stable-branch configuration unchanged.
File Description
.github/​dependabot.yml Enables default-branch option inheritance and groups security updates by ecosystem.

Review effort: Balanced

Comment thread .github/dependabot.yml
- package-ecosystem: npm
directory: "/"
target-branch: "main"
# Omit target-branch so security updates inherit this default-branch entry's options.

This branch has not been deployed

No deployments
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.

2 participants