Skip to content

Commit efebc6b

Browse files
committed
fix(ci): add uv to root tools so semgrep installs via uvx (#320)
The upgrade-main workflow (and any cold-cache security.yml run) fails at the mise-action Install step because mise 2026.6.2+ enabled a default minimum_release_age for the pipx backend, which triggers a shared-pip venv upgrade that fails on the runner ("Failed to upgrade shared libraries"). mise's pipx.uvx setting defaults to true and routes pipx tools through `uv tool install` when uv is on PATH — but uv was only declared in agent/mise.toml, not the root mise.toml that mise-action provisions at the repo root. Declaring uv here puts it on PATH before semgrep resolves, so semgrep installs via uvx and bypasses the broken classic-pipx path. Verified locally under the exact CI mise 2026.6.3: with uv in [tools], `mise install` runs `uv tool install semgrep==1.165.0` and succeeds. Preserves the 2026.6.2 supply-chain release-age protection. Refs #320
1 parent d6b00df commit efebc6b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

mise.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ experimental = true
1818
node = "22"
1919
prek = "latest"
2020
gitleaks = "latest"
21+
# uv must be declared so it is on PATH before semgrep installs: mise's
22+
# `pipx.uvx` default routes pipx tools through `uv tool install` when uv is
23+
# present, avoiding the classic-pipx "Failed to upgrade shared libraries" path
24+
# that breaks under the mise 2026.6.x default `minimum_release_age` (see #320).
25+
uv = "latest"
2126
semgrep = "latest"
2227
osv-scanner = "latest"
2328
"grype" = "latest"

0 commit comments

Comments
 (0)