Pillow
Pillow copied to clipboard
Do not use cmd shell in GitHub Actions
https://github.com/python-pillow/Pillow/pull/9318 upgraded zizmor to include https://docs.zizmor.sh/audits/#obfuscation
The CMD shell has no formal grammar, making it impossible to accurately analyze for security issues.
This PR allows for that by
- Changing test-windows.yml to avoid the cmd shell.
- Moving the cmd shell instructions from wheels.yml into a separate file, where they will not bother zizmor. It is not an ideal solution, but I suspect an ideal solution would involve changing winbuild to no longer generate cmd files, and that seems like a step too far. This will at least allow zizmor's rule to be in place, so that we can enforce it by default.