Skip to content

Configure npm to use Microsoft's approved package feed - #16343

Merged
lpcox merged 3 commits into
mainfrom
lpcox-approved-npm-feed
Nov 11, 2026
Merged

lpcox merged 3 commits into
mainfrom
lpcox-approved-npm-feed

Conversation

@lpcox

@lpcox lpcox commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add a root .npmrc pointing to https://packagefeedproxy.microsoft.io/npm/.
  • Configure the smoke workflow's global Playwright install with NPM_CONFIG_REGISTRY, since global installs ignore project .npmrc files.
  • Allow the approved feed and its Azure Artifacts/blob download hosts through the workflow firewall, and regenerate the compiled workflow.
  • Document repository-local and global npm configuration in CONTRIBUTING.md.

There are no npm manifests or lockfiles in this repository to migrate.

Set the repository npm registry and route global Playwright installs through the approved feed, including required download hosts.

Co-authored-by: Copilot App <[email protected]>
Copilot AI adaptive review requested due to automatic review settings November 11, 2026 18:33
Comment thread .github/workflows/smoke-copilot.md Resolved

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.

🟢 Approval recommended

No active review issues are reported for the npm registry configuration changes.

No open issues 🎉

What changed in this PR

Configures npm package installation to use Microsoft’s approved feed for repository-local commands and the Copilot smoke workflow.

Changes:

  • Adds a root .npmrc with the approved registry.
  • Sets the smoke workflow’s registry environment variable, allows feed download hosts through its firewall, and regenerates the compiled workflow.
  • Documents registry configuration for local and global npm installs.
File Description
CONTRIBUTING.md Documents approved-feed usage and global-install requirements.
.npmrc Sets the repository-local npm registry.
.github/​workflows/​smoke-copilot.md Configures the registry and permits feed download hosts.
.github/​workflows/​smoke-copilot.lock.yml Updates the compiled workflow with registry and firewall settings.

Review effort: Balanced (auto)

@github-actions

This comment has been minimized.

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Comment thread .github/workflows/smoke-copilot.md Resolved
@github-actions

This comment has been minimized.

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

🔒 mcpg Read-Only Stress — default

Surface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Isolation runtime: default (normal container isolation)

Part Surface Op Result Expected Status
A MCP reads (list_issues, list_pull_requests, get_file_contents, list_commits) data returned ALLOWED ✅
B MCP writes (star_repository, issue_write, add_issue_comment, create_branch, create_or_update_file, create_pull_request) all -32602 unknown tool (absent from 23-tool read-only catalog; backend never registers write tools under GITHUB_READ_ONLY=1) BLOCKED ⚠️
C CLI reads (github list_issues, get_file_contents) data returned ALLOWED ✅
D CLI REST writes not attempted — gh auth status shows unauthenticated, no GH_TOKEN BLOCKED ⚠️
E CLI GraphQL mutations not attempted — same auth gap as D BLOCKED ⚠️

Overall: INCONCLUSIVE

No write leaked through mcpg. Part B targets were absent entirely from the exposed MCP tool catalog (standard gh-aw tools.github: GITHUB_READ_ONLY=1 backend behavior), so gateway-level call-time blocking could not be independently exercised on this run. Part D/E could not run because gh had no credentials in this environment. Independent gateway DIFC/guard enforcement is covered separately by internal/guard and internal/difc unit tests.

🔒 mcpg read-only stress (default AWF runtime) by Read-Only Stress: default runtime

@lpcox
lpcox merged commit 8088d58 into main Nov 11, 2026
29 of 30 checks passed
@lpcox
lpcox deleted the lpcox-approved-npm-feed branch November 11, 2026 19:04
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.

3 participants