Add `pwsh` to `ubuntu-slim`
Tool name
pwsh
Tool license
MIT
Add or update?
- [x] Add
- [ ] Update
Desired version
latest
Approximate size
No response
Brief description of tool
No response
URL for tool's homepage
No response
Provide a basic test case to validate the tool's functionality.
Platforms where you need the tool
- [ ] Azure DevOps
- [x] GitHub Actions
Runner images where you need the tool
- [ ] Ubuntu 22.04
- [ ] Ubuntu 24.04
- [x] Ubuntu Slim
- [ ] macOS 13
- [ ] macOS 13 Arm64
- [ ] macOS 14
- [ ] macOS 14 Arm64
- [ ] macOS 15
- [ ] macOS 15 Arm64
- [ ] macOS 26 Arm64
- [ ] Windows Server 2019
- [ ] Windows Server 2022
- [ ] Windows Server 2025
Can this tool be installed during the build?
Tool installation time in runtime
No response
Are you willing to submit a PR?
No response
Hello @mikeharder, We'll consider your suggestion to add pwsh to the Slim image. However, adding many apps will turn the Slim image into a standard image, which is not the goal of creating a Slim image.
@Alexey-Ayupov: In that case, could you consider offering both the ubuntu-slim and ubuntu-24.04 images on the 1 vCPU runners? I'd like to use a 1 vCPU runner, but still have all the same apps as the standard runners.
https://github.blog/changelog/2025-10-28-1-vcpu-linux-runner-now-available-in-github-actions-in-public-preview/
I fully agree on this request. PowerShell (without any extra modules of course for size) would be a great addition to the slim runner.
Some of us (a lot?) are a lot better at shell pwsh than bash. A lot of our existing action code runs with pwsh as shell and with it on the slim image we can avoid porting it.
Thanks for the requests, we chatted and agree. I'll be adding Powershell in the next image update to be rolled out early next week.
Thanks for the requests, we chatted and agree. I'll be adding Powershell in the next image update to be rolled out early next week.
Great news - thank you!
I pushed this image update to Monday. The image update is active in our test environments and, assuming everything looks good, I'll get it rolled out to production on Monday.