Repository navigation
feat: add mise-env option to run-script - #6
Merged
Merged
Conversation
There was a problem hiding this comment.
All reported issues were addressed across 2 files
Architecture diagram
sequenceDiagram
participant Admin as GitHub Actions Admin
participant WF as run-script Workflow
participant Action as step-security/action
participant Setup as Setup Job (setup-mise)
participant Cache as Pre-commit Cache
participant Mise as mise Tool Manager
participant Script as User Script
Note over Admin,Script: Private CI Workflow for Mise-Provisioned Scripts
Admin->>WF: Trigger workflow with inputs
Note right of Admin: inputs.<br/>tool-versions-file (default .tool-versions)
WF->>WF: Set MISE_DEFAULT_TOOL_VERSIONS_FILENAME env<br/>from inputs.tool-versions-file
WF->>Action: Harden Runner
Action-->>WF: Secured environment
WF->>Setup: Setup Job
Setup->>Setup: Install mise
Setup->>Mise: Read tools from<br/>MISE_DEFAULT_TOOL_VERSIONS_FILENAME
Mise->>Mise: Search working dir up to repo root<br/>for configured filename
alt Custom tool-versions-file provided
Mise-->>Setup: Load tools from custom file
else Default .tool-versions
Mise-->>Setup: Load tools from .tool-versions
end
Setup-->>WF: Tools ready
WF->>Cache: Restore pre-commit cache
Cache->>Cache: Compute cache key with<br/>custom tool-versions filename hash
alt Cache hit
Cache-->>WF: Restore cache
else Cache miss
Cache-->>WF: No cache
end
WF->>Script: Execute user script
Script->>Mise: Use provisioned tools (available on PATH)
Mise-->>Script: Tool binaries
Script-->>WF: Script result (success/failure)
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
albertodonato
force-pushed
the
ack/run-script-tool-versions-file
branch
2 times, most recently
from
October 26, 2026 16:17
7a9a94c to
d6e0971
Compare
albertodonato
force-pushed
the
ack/run-script-tool-versions-file
branch
from
October 26, 2026 16:33
d6e0971 to
9d3f9bf
Compare
### what add a `mise-env` parameter to the `run-script` workflow to set `MISE_ENV`, so that `mise.<env>.toml` config files are loaded on top of the default config. ### why Allow using CI-specific tooling without having `mise` pick it up by default in the repo ### testing will test in workflows ### docs updated docs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
albertodonato
force-pushed
the
ack/run-script-tool-versions-file
branch
from
October 26, 2026 16:34
9d3f9bf to
420ba6e
Compare
johnsca
reviewed
Oct 26, 2026
There was a problem hiding this comment.
All reported issues were addressed across 1 file (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
Re-trigger cubic
albertodonato
force-pushed
the
ack/run-script-tool-versions-file
branch
from
October 26, 2026 17:53
29b6527 to
d4f1f03
Compare
johnsca
reviewed
Oct 26, 2026
johnsca
approved these changes
Oct 26, 2026
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.
what
add a
mise-envparameter to therun-scriptworkflow to setMISE_ENV, sothat
mise.<env>.tomlconfig files are loaded on top of the default config.Also requires lockfile.
why
Allow using CI-specific tooling without having
misepick it up by default inthe repo
testing
will test in workflows
docs
updated docs
🤖 Generated with Claude Code