Repository navigation
fix(lint): install caller-pinned mise tools; friendly error when a tool isn't pinned - #239
Merged
Merged
Conversation
The linter jobs installed each tool with mise but never activated a version, so
'mise exec -- <tool>' failed with 'No version is set for shim'. Pass the version
request to exec directly ('mise exec <tool>@latest -- <tool>'; pipx-backed tools
use 'pipx:<tool>@latest') so the tool resolves and runs.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ersions Install lint tools from the consuming repo's Renovate-managed mise config (install: true, no install_args) and, per job, verify a mise config exists and the needed tool is pinned — failing with a friendly, actionable error if not — then run via 'mise exec -- <tool>'. Keeps tool versions pinned and Renovate-managed in the repos that use them, not in this central tenant. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
… any missing arg) The guard used 'ls fileA fileB ... >/dev/null' which exits non-zero if ANY listed path is missing, so it reported 'No mise config found' even when a .mise.toml existed. Use explicit 'test -f' checks instead. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
DevSecNinja
added a commit
to DevSecNinja/az-vm-start-stop
that referenced
this pull request
Jul 3, 2026
Uses the fixed reusable lint workflow (installs tools from this repo's .mise.toml). Revert to the released tag once DevSecNinja/.github#239 ships. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The shellcheck job's command is a subshell '(... mise exec -- shellcheck)', so the tool-name extraction captured 'shellcheck)' with the paren, producing invalid shell in the guard. Use the bare 'shellcheck' bin name. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2 of 3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Every mise-based linter job (dprint, yamlfmt, yamllint, actionlint, gitleaks, shfmt, checkov, trivy, zizmor) failed at runtime with:
Root cause: the jobs installed each tool with
install_args: "<tool>", which installs but does not activate a version, somise exec -- <tool>couldn't resolve it.Approach
Rather than have the central workflow own tool versions (unpinned
@latest, or hardcoded versions here), let each consuming repo pin its lint tools in its own Renovate-managedmiseconfig. The workflow now:jdx/mise-actionwithinstall: true, noinstall_args);mise exec -- <tool>(resolving the caller's pinned version).This keeps versions pinned + Renovate-managed in the repos that use the tools, and out of this central tenant.
Verification
Validated locally with mise 2026.7.0:
Consuming repos must add the lint tools to their
mise.toml(a companion docs/convention update covers this). Discovered while onboarding lint toDevSecNinja/az-vm-start-stop.Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com