[release/v7.4.20] Enable early .NET builds in APIScan - #27955
Merged
Justin Chung (jshigetomi) merged 1 commit intoSep 3, 2026
Merged
Justin Chung (jshigetomi) merged 1 commit into
Justin Chung (jshigetomi) merged 1 commit into
Conversation
Co-authored-by: Justin Chung <[email protected]> Co-authored-by: Copilot Autofix powered by AI <[email protected]> Copilot-Session: 8e891fb6-fc75-4166-bd45-0a564a2b94cd (cherry picked from commit ed0ec1b)
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Copilot started reviewing on behalf of
Justin Chung (jshigetomi)
September 2, 2026 23:22
View session
Patrick Meinecke (SeeminglyScience)
approved these changes
Sep 2, 2026
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The changes alter CI feed authentication and OneBranch restore-phase execution for a release pipeline, which warrants final human validation in a real APIScan run.
Pull request overview
Backport to release/v7.4.20 that updates the APIScan Azure Pipelines definitions to support “early access” .NET builds by downloading/installing the queued SDK early, wiring authenticated feeds, and running restore/build-related steps in the OneBranch restore phase.
Changes:
- Update NuGet feed switching to use the internal PowerShell Azure DevOps feed for module restores during early access builds.
- Extend the NuGet-config insertion template to pass authenticated feed credentials and emit
VSS_NUGET_EXTERNAL_FEED_ENDPOINTSfor both early-access and internal PowerShell feeds. - Add early-access .NET parameters + a preparation stage to the APIScan pipeline, and update the APIScan job to install/select the early-access SDK (via
global.json) and run build/CodeQL steps in restore phase.
File summaries
| File | Description |
|---|---|
| build.psm1 | Adjusts Switch-PSNugetConfig early-access handling to use the internal PowerShell feed for module nuget.config generation. |
| .pipelines/templates/insert-nuget-config-azfeed.yml | Passes early-access/private feed credentials into Switch-PSNugetConfig and sets VSS_NUGET_EXTERNAL_FEED_ENDPOINTS for both feeds. |
| .pipelines/templates/compliance/apiscan.yml | Replaces UseDotNet@2 with the repo’s early-access install template, updates global.json for early SDK selection, and runs key steps in restore phase. |
| .pipelines/apiscan-gen-notice.yml | Adds early-access parameters and a prep stage to download early-access .NET artifacts before the APIScan stage. |
Review details
- Files reviewed: 4/4 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Justin Chung (jshigetomi)
merged commit Sep 3, 2026
f484749
into
PowerShell:release/v7.4.20
40 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #27952 to
release/v7.4.20.This enables early .NET SDK download, selection, authenticated feed setup, and restore-phase compilation for the APIScan pipeline.