Skip to content

Remote repository workflows

Sandbox Loom can compose GitHub Actions workflows from a project's local normalized scope and quality-gate configuration. Generation is local: it does not call a hosting-provider API, create a repository, configure secrets, or push files.

bin/sandbox-loom repo workflows generate .

The command proposes GitHub when the selected Git remote points to github.com. This is inference, not approval. Review the provider in the JSON result and inspect both generated files before committing them. If there is no remote, or the host cannot be identified, generation stops. Supply an explicit provider to override detection:

bin/sandbox-loom repo workflows generate . --provider github
bin/sandbox-loom repo workflows generate . --provider github --remote upstream

The first provider is GitHub. The command generates:

  • .github/workflows/ci.yml, with the configured toolchain setup and every quality gate's declared argv command;
  • .github/workflows/docs.yml, with the strict Zensical build and optional GitHub Pages deployment only when github-pages is an approved documentation publication target.

The workflows receive read-only repository permission by default. Only the Pages deployment job receives pages: write and id-token: write, and it runs only for pushes to main. No long-lived cloud credentials are generated.

Existing differing files are preserved and cause generation to stop. After reviewing the diff, --force explicitly permits replacement:

bin/sandbox-loom repo workflows generate . --provider github --force

Before generation, validate that .sandbox-loom/intake/normalized-scope.yml and .sandbox-loom/quality-gates.yml are current. Quality gates must define commands as argument arrays (argv), which are rendered as shell-safe command lines. Generated workflows are proposals and still require normal code review and repository-specific acceptance testing.