Skip to content

Use PowerShell for the Windows build step - #1384

Merged
jjhelmus merged 1 commit into
mainfrom
alex/pbs-use-pwsh
Oct 21, 2026
Merged

jjhelmus merged 1 commit into
mainfrom
alex/pbs-use-pwsh

Conversation

@AlexWaygood

Copy link
Copy Markdown
Member

zizmor flags the Windows build step because it uses cmd, which is difficult to analyze reliably. The build script already initializes the Visual Studio environment, so the step no longer needs CMD for that setup.

Run the step with PowerShell and pass the same build arguments using PowerShell environment-variable syntax. This removes the misfeature finding without suppressing it.

Fixes https://github.com/astral-sh/python-build-standalone/security/code-scanning/33.

@jjhelmus jjhelmus added platform:windows Specific to the Windows platform arch:all Select all architectures python:all Select all Python versions build:all labels Oct 21, 2026
@jjhelmus

Copy link
Copy Markdown
Contributor

LGTM but want to run a full Windows matrix to validate the environment variables are correctly passed.

@jjhelmus jjhelmus closed this Oct 21, 2026
@jjhelmus jjhelmus reopened this Oct 21, 2026
@jjhelmus
jjhelmus merged commit 78930f7 into main Oct 21, 2026
95 checks passed
@jjhelmus
jjhelmus deleted the alex/pbs-use-pwsh branch October 21, 2026 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arch:all Select all architectures build:all platform:windows Specific to the Windows platform python:all Select all Python versions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants