v2.6 integration guide for downstream orun users
This guide describes how downstream repositories that consume orun (as a CLI in CI/CD or as a library dependency) should adopt the v2.6 release.
Who this is for
Teams that:
- Run
orunas part of a GitHub Actions workflow or other CI/CD pipeline. - Vendor orun as a library dependency from another Go project.
- Ship orun as part of a developer toolchain (dev containers, internal CLIs, docs sites).
What changed in v2.6
- New
orun tuiinteractive cockpit. - New GitHub Actions artifact integration for plan and job shards.
- New
orun github runs / pull / status / logscommands for inspecting remote runs withoutactions/download-artifact. - No breaking CLI flags or library surface changes.
Pick up orun tui
Install the new CLI on developer machines:
go install github.com/sourceplane/orun/cmd/orun@v2.6.0
orun tui
The cockpit is read-only against .orun/ — it generates plans, dry-runs, and inspects state, but it doesn't write anything CI cares about. You can safely:
- Add
orun tuito a dev container image. - Document it in onboarding without changing CI.
- Run it against a hydrated
.orun/produced byorun github pull.
No workflow changes are required.
Pick up GitHub Artifacts
For teams running orun inside GitHub Actions, opt in via environment variables in the workflow:
env:
ORUN_ARTIFACT_BACKEND: github
ORUN_ARTIFACT_UPLOAD: "true"
With those set, orun plan and orun run upload immutable plan / job shards using the embedded @actions/artifact helper. No additional actions/upload-artifact step is needed.
To inspect or hydrate from a local machine:
orun github pull --latest
orun github status --branch main
orun github logs --failed
Token requirements
Local commands need one of:
GITHUB_TOKENenv varGH_TOKENenv vargh auth token(authenticatedghCLI)
Private repositories require the Actions: read fine-grained permission. The token is never logged or persisted.
See GitHub Artifacts architecture for the full pipeline.
Updated commands
| Command | One-line |
|---|---|
orun github runs | List workflow runs and their artifact shards. |
orun github pull | Download all shards and hydrate into .orun/executions/. |
orun github status | Quick remote status via artifact name parsing. |
orun github logs | Download specific job shard logs. |
API / library changes
Orun's public surface is anything outside internal/. v2.6 added:
internal/artifactstore/github/— not public.internal/tui/*— not public.
Library consumers see no surface change in v2.6. Vendoring upgrades are safe.
Migration checklist
- Bump orun to
v2.6.0in CI installer scripts. - (Optional) Enable artifact upload by setting
ORUN_ARTIFACT_BACKEND=githubandORUN_ARTIFACT_UPLOAD=true. - (Optional) Wire
orun tuiinto your dev container or contributor docs. - Re-run baseline CI to confirm no regressions.
- Consult the release notes for any pin updates and review downstream consumers.
Troubleshooting
- Artifact upload silently skipped. Verify
ACTIONS_RUNTIME_TOKENis present in the job environment — uploads gate on it and no-op when absent. - TUI rendering glitches. The inspector auto-opens at ≥100 columns; below that, toggle it manually with
i. Resize the terminal or collapse the inspector if the main pane looks cramped. - Plan Studio shows
(no plan). Pressgto generate a plan first — Plan Studio doesn't auto-generate on entry.