Skip to content

Add authentication and NuGet feed configuration to the YAML file for fetching and restoring packages. - #1100

Open
v-ochoudhary wants to merge 13 commits into
mainfrom
users/v-ochoudhary/fix-pr-build-checks
Open

v-ochoudhary wants to merge 13 commits into
mainfrom
users/v-ochoudhary/fix-pr-build-checks

Conversation

@v-ochoudhary

@v-ochoudhary v-ochoudhary commented Sep 16, 2026

Copy link
Copy Markdown

Details

This pull request introduces a new authentication mechanism for accessing a private Azure DevOps NuGet feed in CI builds, and updates build pipelines to ensure secure and consistent package restoration. It also updates the WixToolset.Sdk version for the installer project and adds a dedicated nuget.config for package source configuration.

Build pipeline improvements:

  • Added a reusable pipeline template (build/authenticate-private-feed.yml) that authenticates to the private Azure DevOps NuGet feed using Workload Identity Federation and updates the agent’s nuget.config with the required credentials.
  • Updated the main build pipelines (build/prbuild.yml, build/signedbuild.yml, and build/check-dependencies.yml) to use the new authentication template before any NuGet or dotnet restore steps, and configured all restore tasks to use the new src/nuget.config file and the authenticated feed. [1] [2] [3] [4] [5] [6] [7] [8]
  • Set networkIsolationPolicy: Permissive,CFSClean in pipeline jobs to allow access to the private feed in a secure manner. [1] [2]

Configuration updates:

  • Added a new src/nuget.config file specifying the private a11y-insights-public feed as the sole package source for builds.

Build tooling update:

  • Bumped the WixToolset.Sdk version from 4.0.1 to 4.0.2 in src/CLI_Installer/CLI_Installer.wixproj for the installer build.
Motivation

Fix PR checks failed due to nuget package is not restore.

Pull request checklist

  • Addresses an existing issue: #0000

@v-ochoudhary
v-ochoudhary requested a review from a team as a code owner September 16, 2026 10:31
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@v-ochoudhary
v-ochoudhary requested a lite review from Copilot September 16, 2026 10:32
@v-ochoudhary

Copy link
Copy Markdown
Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Clearing existing sources may prevent required packages from restoring unless the configured feed provides the necessary upstreams.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

This PR standardizes authenticated NuGet restores across Azure Pipelines.

Changes:

  • Adds centralized src/nuget.config.
  • Authenticates NuGet feeds before restores.
  • Configures restore tasks to use the shared configuration.
  • Updates network isolation settings.
File summaries
File Description
src/nuget.config Defines the shared package source.
build/signedbuild.yml Updates authenticated signed-build restores.
build/prbuild.yml Updates authenticated PR-build restores.
build/check-dependencies.yml Updates authenticated dependency checks.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/nuget.config Outdated
@v-ochoudhary

Copy link
Copy Markdown
Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
No pipelines were found matching this branch/path.

@v-ochoudhary

Copy link
Copy Markdown
Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
No pipelines were found matching this branch/path.

@v-ochoudhary

Copy link
Copy Markdown
Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@v-ochoudhary

Copy link
Copy Markdown
Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@v-ochoudhary

Copy link
Copy Markdown
Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
No pipelines were found matching this branch/path.

@v-ochoudhary

Copy link
Copy Markdown
Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
No pipelines were found matching this branch/path.

@v-ochoudhary

Copy link
Copy Markdown
Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@v-ochoudhary

Copy link
Copy Markdown
Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@v-ochoudhary v-ochoudhary changed the title Add authenication and nuget feed cofig into yml for fetch and restore… Add authentication and NuGet feed configuration to the YAML file for fetching and restoring packages. Sep 17, 2026
@v-ochoudhary

Copy link
Copy Markdown
Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@v-ochoudhary

Copy link
Copy Markdown
Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Critical credential-exposure and template-path issues, plus a coverage-upload path bug, remain unresolved.

Get a fresh assessment by requesting another Copilot review.

Review details
  • Files reviewed: 6/6 changed files
  • Comments generated: 3
  • Review effort level: Lite

Comment thread build/authenticate-private-feed.yml
Comment thread build/check-dependencies.yml
Comment thread build/prbuild.yml
@v-ochoudhary

Copy link
Copy Markdown
Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@v-ochoudhary

Copy link
Copy Markdown
Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@v-ochoudhary

Copy link
Copy Markdown
Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

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