Skip to content

[release/v7.7.0] Fix module-only vPack build feed credentials - #28369

Merged
Justin Chung (jshigetomi) merged 1 commit into
release/v7.7.0from
backport/release/v7.7.0/28356-1aac7f5e3
Nov 6, 2026
Merged

Justin Chung (jshigetomi) merged 1 commit into
release/v7.7.0from
backport/release/v7.7.0/28356-1aac7f5e3

Conversation

@jshigetomi

Copy link
Copy Markdown
Collaborator

Backport of #28356 to release/v7.7.0

Triggered by Justin Chung (@jshigetomi) on behalf of Aditya Patwardhan (@adityapatwardhan)

Original CL Label: CL-BuildPackaging

/cc @PowerShell/powershell-maintainers

Impact

Tooling Impact

  • Required tooling change
  • Optional tooling change (include reasoning)

Fixes authenticated bundled-module restores in vPack and MSIX builds when UseEarlyAccessModules is enabled without IsEarlyAccess. Both build steps explicitly map the secret VSS_NUGET_EXTERNAL_FEED_ENDPOINTS variable into their environment, since Azure Pipelines does not automatically export secret variables.

Customer Impact

  • Customer reported
  • Found internally

Regression

  • Yes
  • No

Fixes credential mapping omitted when the internal module-feed feature from #28326 was backported to release/v7.7.0 via merged prerequisite #28366.

Testing

Includes the original PR's regression coverage requiring direct secret credential mappings in both build-step environment blocks. The clean cherry-pick applied without conflicts. The original PR validated both pipeline YAML files across all four early-access flag combinations, preserved existing runtime-feed-key behavior and secret publication, passed PowerShell syntax parsing and git diff --check, and verified the new regression-test regexes against fixed and original files. Local Pester could not run because Pester and PowerShell Gallery access were unavailable. Backport CI, including Azure Pipelines authentication validation, must pass before merge.

Risk

  • High
  • Medium
  • Low

Changes shared build pipeline authentication, but the fix is limited to explicit environment mappings for the existing secret variable. Runtime-feed-key behavior is unchanged, and regression tests cover both mappings. CI validation is required before merge.

@jshigetomi
Justin Chung (jshigetomi) requested a review from a team as a code owner November 6, 2026 03:03
@jshigetomi Justin Chung (jshigetomi) added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Nov 6, 2026
Copilot AI balanced review requested due to automatic review settings November 6, 2026 03:03
@jshigetomi Justin Chung (jshigetomi) changed the title Fix module-only vPack build feed credentials (#28356) [release/v7.7.0] Fix module-only vPack build feed credentials Nov 6, 2026
@azure-pipelines

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

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.

🔵 Needs a closer look

Azure Pipelines validation is needed to confirm authenticated restores, service-connection access, and secret propagation through OneBranch for vPack and MSIX builds, which static checks cannot verify.

No open issues 🎉

What changed in this PR

Backports #28356 to release/v7.7.0, fixing authenticated bundled-module restores in vPack and MSIX builds when UseEarlyAccessModules is enabled without IsEarlyAccess.

Changes:

  • Explicitly maps secret feed credentials into both build-step environments while preserving runtime-feed-key behavior.
  • Adds regression tests requiring direct credential mappings in both pipelines.
  • Documents Azure Pipelines’ explicit secret-mapping requirement.
File Description
test/​infrastructure/​NugetConfig.Tests.ps1 Adds regression coverage for both build-step credential mappings.
docs/​building/​internals.md Documents explicit secret mapping, including module-only builds.
.pipelines/​templates/​stages/​PowerShell-vPack-Stages.yml Removes the early-access condition from the vPack credential mapping.
.pipelines/​MSIXBundle-vPack-Official.yml Maps MSIX feed credentials independently of the runtime-feed-key condition.

Review effort: Balanced

@jshigetomi
Justin Chung (jshigetomi) merged commit ac94577 into release/v7.7.0 Nov 6, 2026
37 checks passed
@daxian-dbw
Dongbo Wang (daxian-dbw) deleted the backport/release/v7.7.0/28356-1aac7f5e3 branch November 6, 2026 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants