Skip to content

fix(dependabot): unblock npm updates - #126

Merged
ingvaar merged 1 commit into
mainfrom
fix/dependabot-npm-registry
Oct 28, 2026
Merged

ingvaar merged 1 commit into
mainfrom
fix/dependabot-npm-registry

Conversation

@ingvaar

@ingvaar ingvaar commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Dependabot automatically adds GitHub Packages credentials to npm update jobs, even though this repo uses the public npm registry. Its registry validation rejects those credentials when the repo has no .npmrc, so both security and version updates fail before resolving dependencies.

Add an .npmrc pointing to the public npm registry. This gives Dependabot the configuration it expects without adding a token. The project setting takes precedence over user-level registry settings, but an environment override still works.

This is a workaround for the interaction reported in dependabot/dependabot-core#15415. Dependabot can only use it once it reaches main, so we can confirm it with a new update job then. The existing security alerts still need dependency updates.

@ingvaar
ingvaar requested a review from britishrum October 28, 2026 12:27
@britishrum

Copy link
Copy Markdown

Seems to be in line with GitHub's changelog on Dependabot no longer inferring .npmrc 👍

@ingvaar
ingvaar marked this pull request as ready for review October 28, 2026 16:08
@ingvaar
ingvaar requested a review from a team as a code owner October 28, 2026 16:08
@ingvaar
ingvaar requested review from Sono304 and aksdb October 28, 2026 16:08
@ingvaar
ingvaar merged commit 232663f into main Oct 28, 2026
8 checks passed
@ingvaar
ingvaar deleted the fix/dependabot-npm-registry branch October 28, 2026 16:08
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