Environments and preview targets

Declare Environments in Builder settings, apply them on the bound repo, and keep review and release jobs pointed at the right target.

Last updated September 27, 2026

Where environments are declared

Environments is a Builder setting, not a top-level app. Declare every target a stage, hook, or Human Review Task will use before compile. An undeclared environment fails compile.

Typical targets:

  • preview or review environments used by functional or code tasks
  • production environment used by release tasks

GitHub remains the host. Canon stores the contract; GitHub stores the environment, secrets, and protection rules.

Apply on the bound repo

Export can emit environment payloads. Repository setup applies them. After apply, confirm in GitHub:

  • each named environment exists on the bound repo
  • required reviewers are real identities, not placeholders
  • secrets stay in GitHub. Review Tasks must not display secrets.

A Review Task that requires testing stays unready until its environment exists.

Preview versus production

Preview targets are for evaluation before merge. Production targets are for release and v* tags. Do not point a release task at a preview environment.

Tag-creation rulesets still need an explicit bypass actor. A ruleset with no bypass actor deadlocks release. A missing ruleset can fail open. See Canon GitHub App, OIDC, and rulesets.

After a change

If you add, rename, or remove an environment on the Blueprint, re-compile, re-export, and re-apply repository setup. Start Run will dispatch the installed graph, not the canvas.

Still stuck?Contact support