Skip to content

Commit cf9d07c

Browse files
Sanju YadavCopilot
andcommitted
Use public npmjs.org registry instead of ADO feed token
No secrets needed — override the ADO feed with registry.npmjs.org in user-level ~/.npmrc since all task dependencies are public npm packages. The ADO feed was just an upstream proxy. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent f9e0f4a commit cf9d07c

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

.github/workflows/copilot-setup-steps.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,13 @@ jobs:
2626
with:
2727
node-version: "20"
2828

29-
# Configure npm auth for the ADO feed BEFORE the firewall is enabled.
30-
# The repo .npmrc points to the ADO PipelineTools_PublicPackages feed
31-
# which requires authentication (always-auth=true).
32-
# We write auth to the user-level ~/.npmrc to avoid leaking tokens into the repo.
33-
- name: Configure npm auth for ADO feed
29+
# Override the ADO feed registry with public npmjs.org for the agent.
30+
# The repo .npmrc points to an ADO feed that gets blocked by the firewall.
31+
# Since all packages are public npm packages, we use npmjs.org directly.
32+
- name: Configure npm for public registry
3433
run: |
35-
ADO_REGISTRY="//pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/"
36-
echo "${ADO_REGISTRY}:username=AzureDevOps" >> ~/.npmrc
37-
echo "${ADO_REGISTRY}:_password=$(echo -n '${{ secrets.ADO_NPM_TOKEN }}' | base64)" >> ~/.npmrc
38-
echo "${ADO_REGISTRY}:email=copilot@github.com" >> ~/.npmrc
39-
echo "Configured npm auth for ADO feed"
34+
echo "registry=https://registry.npmjs.org/" > ~/.npmrc
35+
echo "Configured npm to use public registry (bypasses ADO feed)"
4036
4137
# Pre-fetch sprint data before the firewall blocks whatsprintis.it
4238
# The hook and agent instructions need this for version bumping

0 commit comments

Comments
 (0)