◐ Shell
clean mode source ↗

PMC release: Use slash instead of back-slash for Linux container by daxian-dbw · Pull Request #27315 · PowerShell/PowerShell

Conversation

@daxian-dbw

PR Summary

Use slash instead of back-slash for Linux container. Otherwise, the CreadScan step fails because it cannot find the file.

Copilot AI review requested due to automatic review settings

April 21, 2026 19:54

jshigetomi

Choose a reason for hiding this comment

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

Pull request overview

Updates the EV2 release prep pipeline template to use POSIX-style paths so CredScan can locate the suppression file when running in a Linux container.

Changes:

  • Switch ob_sdl_credscan_suppressionsFile from Windows \ separators to / separators for Linux execution.
- group: 'packages.microsoft.com'
- name: ob_sdl_credscan_suppressionsFile
value: $(Build.SourcesDirectory)\PowerShell\.config\suppress.json
value: $(Build.SourcesDirectory)/PowerShell/.config/suppress.json

Choose a reason for hiding this comment

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

Consider reusing the already-defined repoRoot variable here (e.g., $(repoRoot)/.config/suppress.json) instead of repeating $(Build.SourcesDirectory)/PowerShell. This reduces duplication and prevents future path changes from requiring multiple updates.

value: $(Build.SourcesDirectory)/PowerShell/.config/suppress.json
value: $(repoRoot)/.config/suppress.json

Copilot uses AI. Check for mistakes.

adityapatwardhan

@daxian-dbw daxian-dbw changed the title Use slash instead of back-slash for Linux container PMC release: Use slash instead of back-slash for Linux container

Apr 21, 2026

JustinGrote pushed a commit to JustinGrote/PowerShell that referenced this pull request

Jun 2, 2026

Labels