Skip to content

Conversation

@akoeplinger
Copy link
Member

The .npmrc is not transitively looked up in parent directories like other config files, it needs to be next to the package.json

Also remove the always-auth entry since it is deprecated/unused in npm and will be removed: actions/setup-node#1305

This fixes the registry.npmjs.org related violations for SFI network isolation, it needs to be backported to all active branches.

The .npmrc is not transitively looked up in parent directories like other config files, it needs to be next to the package.json

Also remove the always-auth entry since it is deprecated/unused in npm and will be removed: actions/setup-node#1305
Copilot AI review requested due to automatic review settings December 6, 2025 00:07
@github-actions
Copy link
Contributor

github-actions bot commented Dec 6, 2025

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 13358

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 13358"

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses SFI network isolation requirements by ensuring .npmrc configuration files are co-located with package.json files throughout the repository. The changes remove the deprecated always-auth setting and ensure consistent npm registry configuration.

  • Adds .npmrc files with registry configuration to all project directories containing package.json files
  • Removes deprecated always-auth configuration entries from existing .npmrc files
  • Cleans up whitespace in the extension .npmrc file

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/Aspire.ProjectTemplates/templates/aspire-py-starter/frontend/.npmrc Adds registry configuration next to package.json for Python starter template
src/Aspire.ProjectTemplates/templates/aspire-js-frontend-starter/frontend/.npmrc Adds registry configuration next to package.json for JS frontend starter template
playground/BrowserTelemetry/BrowserTelemetry.Web/.npmrc Adds registry configuration next to package.json for BrowserTelemetry playground
playground/AspireWithNode/NodeFrontend/.npmrc Adds registry configuration to existing .npmrc with engine-strict setting
playground/AspireWithJavaScript/AspireJavaScript.Vue/.npmrc Adds registry configuration next to package.json for Vue playground
playground/AspireWithJavaScript/AspireJavaScript.Vite/.npmrc Adds registry configuration next to package.json for Vite playground
playground/AspireWithJavaScript/AspireJavaScript.React/.npmrc Adds registry configuration next to package.json for React playground
playground/AspireWithJavaScript/AspireJavaScript.NodeApp/.npmrc Adds registry configuration next to package.json for NodeApp playground
playground/AspireWithJavaScript/AspireJavaScript.Angular/.npmrc Adds registry configuration next to package.json for Angular playground
extension/.npmrc Removes deprecated always-auth setting and trailing whitespace
.npmrc Removes deprecated always-auth setting from root configuration

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