Repository navigation
Fix Dependabot npm updates and keep yarn.lock free of download URLs - #16548
Merged
Vladimir Morozov (vmoroz) merged 1 commit intoOct 31, 2026
Merged
Vladimir Morozov (vmoroz) merged 1 commit into
Vladimir Morozov (vmoroz) merged 1 commit into
Conversation
Dependabot rejected .github/dependabot.yml because its credential-less registries fail schema validation, so it kept running an older config. Its jobs also could not reach the PackageFeedProxy and ms-feed-* hosts recorded in yarn.lock. - Remove the registries; Dependabot resolves from the public npm registry. - Remove the recorded download URLs from yarn.lock and merge the duplicate entries they had split. Versions and checksums are unchanged, and pipelines restore through their configured registry. - Add checkYarnLock.js and run it in the Linting job to keep them out. - Use the "📦 [main]" and "🎬 [main]" title prefixes for main and Actions. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This was referenced Oct 30, 2026
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Enabling Dependabot updates for 0.81-stable and 0.85-stable requires a maintainer to coordinate merge order with the still-open required lockfile-cleanup PRs #16549 and #16550.
No open issues 🎉
What changed in this PR
Repairs Dependabot’s npm update configuration and keeps the shared lockfile usable by both Dependabot and React Native Windows pipelines.
Changes:
- Removes invalid anonymous registry declarations while preserving grouping and ignore rules, and adds main-branch commit prefixes.
- Removes recorded download URLs and merges duplicate lockfile entries without changing versions or checksums.
- Adds an early linting check with a
--fixoption and documents the registry setup.
| File | Description |
|---|---|
yarn.lock |
Removes archive URLs and consolidates duplicate entries. |
.github/dependabot.yml |
Removes registry declarations and updates commit prefixes. |
.ado/scripts/checkYarnLock.js |
Detects recorded archive URLs and provides cleanup support. |
.ado/README.md |
Documents registry behavior and lockfile cleanup. |
.ado/jobs/linting.yml |
Runs the lockfile guard before dependency installation. |
Review effort: Balanced
Vladimir Morozov (vmoroz)
enabled auto-merge (squash)
October 30, 2026 16:50
acoates-ms
approved these changes
Oct 30, 2026
Danny van Velzen (dannyvv)
approved these changes
Oct 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Type of Change
Why
Dependabot npm updates keep failing, for two reasons.
Since #16511, GitHub rejects
.github/dependabot.yml: annpm-registryentryneeds credentials, and the anonymous feed entries have none. Dependabot keeps
running the last valid config from August, so the grouping fixes from #16511
never took effect.
The jobs also fail on download URLs in
yarn.lock. Dependabot jobs can onlyreach public registries and registries declared in a valid config, so the
PackageFeedProxy and
ms-feed-*hosts recorded in 159 lockfile entries areblocked. Yarn records such a URL whenever a registry serves a package from
another host. PackageFeedProxy does that, so installs through it keep adding more.
What
Dependabot config
public npm registry, so the config validates again and the Fix Dependabot grouping and route it through PackageFeedProxy #16511 grouping and
ignore rules apply.
📦 [main]prefix for main npm updates and🎬 [main]for GitHubActions updates, matching the stable branches'
📦 [0.81]style.Lockfile
yarn.lockand merge the duplicate entries theyhad split. Versions and checksums don't change; pipelines keep restoring through
PackageFeedProxy.
Guard
.ado/scripts/checkYarnLock.jsruns first in the Linting job and fails whenyarn.lockrecords a download URL;--fixremoves them..ado/README.mdexplains the setup.
The 0.81 and 0.85 lockfiles are cleaned in #16549 and #16550. Merge them first
or together with this one: once this config is valid, Dependabot also updates
those branches.
Screenshots
Not applicable.
Testing
yarn install --immutablethrough PackageFeedProxy passes with the cleanedlockfile; the new check fails on the old lockfile and passes on the new one.
Changelog
Should this change be included in the release notes: no
Fix Dependabot npm updates and keep yarn.lock free of download URLs.