Repository navigation
Govern v2 — one verdict before a workflow step runs
uses: decionis/govern@v2 is now the Marketplace address of Govern, the workflow gate, whose source, tests and releases live in decionis/agent-safe-pipeline under govern/. This action carries the listing's metadata and delegates every input and output to the gate at a pinned commit, which downloads the release binary its commit names and verifies it before running.
- uses: decionis/govern@v2
with:
api-key: ${{ secrets.DECIONIS_API_KEY }}
tenant-id: ${{ vars.DECIONIS_TENANT_ID }}
action: production-deploy
run: ./scripts/deploy.sh # runs only on an ALLOW whose grant this step claimedThe step becomes an execution intent, Decionis decides on exactly that intent, the command runs only on an ALLOW whose single-use grant the step claimed first, an ESCALATE can hold it while Decionis orchestrates a person's approval, a BLOCK never starts it, and what happened is finalized into a signed Decision Dossier. mode: shadow starts the command at once and records the verdict beside it, never failing a build. Nothing is decided locally.
Changed from v1: the action speaks the execution contract (enforce-and-bind, claim, finalize) instead of the evaluate-decision API; tenant-id replaces org-id and workflow-key; comment replaces comment-pr; there is no local policy engine (policy-enforce, local-eval) and no execution grant handed to the command (request-grant, grant-audience) — the grant never leaves the gate. The same binary gates GitLab CI, Jenkins and any other runner; govern init writes a repository's starter files. Keys and workspaces are the same. @v1 keeps resolving to the earlier action (v1.9.3).
- Every input, output and exit code: the gate's README
- What one governed step is: docs/govern.md
- The gate's own release, with the binaries this action downloads: agent-safe-pipeline v0.3.3