← Back to Pull requests

fix: extract mise zip with PowerShell instead of unzip on Windows #650

Closed
unknown closed this pull request without merging on Oct 03, 2026 23:42 UTC
View on GitHub
unknown unknown commented on Oct 03, 2026 22:49 UTC
Author

<!-- entire-trail-link-start -->
https://entire.io/gh/jdx/mise-action/trails/25
<!-- entire-trail-link-end -->

Problem


On Windows the action extracts the mise zip with unzip. GitHub-hosted images get it from Git Bash, but many self-hosted Windows runners (e.g. a fresh Windows 11 arm64 box, as reported in #176) don't have it, and mise fails to install.

Fix


Extract with powershell Expand-Archive, which ships with every Windows runner. Archive and destination go through environment variables to avoid quoting problems. Both callers already name the archive .zip, which Expand-Archive requires.

Testing


Typecheck, lint, tests and build pass, and dist/ is rebuilt. I did not run this on a Windows runner; the Windows jobs in CI will exercise it on hosted images, but not the no-unzip self-hosted case.

Fixes #176

🤖 Generated with Claude Code

<!-- CURSOR_SUMMARY -->
---

[!NOTE]

Low Risk

Localized change to Windows archive extraction during mise install; uses built-in PowerShell with path handling via env vars.

> Overview

Windows mise zip installs no longer depend on unzip, which is often missing on self-hosted runners (e.g. #176).

> withExtractedZip now runs PowerShell Expand-Archive with -NoProfile, -NonInteractive, and process-scoped -ExecutionPolicy Bypass so restricted default policies do not block the Archive module. Archive and destination paths are passed via MISE_ZIP_ARCHIVE and MISE_ZIP_DEST env vars to avoid shell quoting issues. dist/ is rebuilt to match src/index.ts.

> <sup>Reviewed by Cursor Bugbot for commit 7c4b6d250f97d7ad169070284380f5764cf323fa. Bugbot is set up for automated code reviews on this repo. Configure here.</sup>

<!-- /CURSOR_SUMMARY -->

Diff: 233 lines (+174 / -59) across 2 files Reviewer: jdx Review duration: 53m
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 233 lines diff across 2 files
0.42
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.326
Shallow Review Depth shallow_review_depth
0.289
Ai Authored ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #650"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 42.1% (MEDIUM) · Higher = larger blast radius
42.1%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 16.6% · Safe to merge
16.6%