Skip to content

CFS: Fix network isolation for registry.npmjs.org in GenerateReleaseArtifacts job#7140

Open
azure-sdk-automation[bot] wants to merge 3 commits into
mainfrom
network-isolation-cfs-1963-6372957
Open

CFS: Fix network isolation for registry.npmjs.org in GenerateReleaseArtifacts job#7140
azure-sdk-automation[bot] wants to merge 3 commits into
mainfrom
network-isolation-cfs-1963-6372957

Conversation

@azure-sdk-automation
Copy link
Copy Markdown
Contributor

@azure-sdk-automation azure-sdk-automation Bot commented May 29, 2026

Network Isolation Fix

Domain being fixed: registry.npmjs.org

Affected job: GenerateReleaseArtifacts

Pipeline entry point YAML: sdk/template/ci.yml

Pipeline run URL: https://dev.azure.com/azure-sdk/590cfd2a-581c-4dcb-a12e-6568ce786175/_build/results?buildId=6372957

Change Description

The GenerateReleaseArtifacts job installs the moxygen npm package via npm install -g moxygen, which attempts to reach registry.npmjs.org. In network-isolated pipeline environments this connection is blocked.

This fix adds a step to configure an authenticated .npmrc pointing to the internal Azure Artifacts npm feed (https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/) at $(UserProfile)/.npmrc before the npm install -g moxygen step, so npm resolves packages through the internal feed instead of the public registry.

Test Pipeline
cpp - template

…facts job (CFS)

Configure npm to use the internal Azure Artifacts npm feed instead of
the public registry.npmjs.org in the GenerateReleaseArtifacts job.
This resolves network isolation failures when installing moxygen.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 29, 2026 22:19
Copy link
Copy Markdown
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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Comment thread eng/pipelines/templates/jobs/archetype-sdk-client.yml Outdated
Comment thread eng/pipelines/templates/jobs/archetype-sdk-client.yml
@chidozieononiwu chidozieononiwu force-pushed the network-isolation-cfs-1963-6372957 branch from d133ddd to 811216a Compare May 29, 2026 23:45
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