Skip to content

Gate a build

Terminal window
rigorrun gate --project <id>

Runs the project’s suite against its configured agent and exits non-zero if the result is under the bar.

CodeMeaning
0The gate passed.
1The agent failed, or the gate was not met.
2Configuration or runtime error. Never a finding about the agent.
Terminal window
rigorrun gate --project <id> \
--min-success 0.95 \
--min-policy 1 \
--max-unsafe 0

Defaults are 95% task success, 100% policy compliance, zero policy violations and zero unsafe actions. Set them to what you would actually block a release on.

- name: Acceptance
run: npx rigorrun gate --project checkout
env:
VENUE_DESK_TOKEN: ${{ secrets.VENUE_DESK_TOKEN }}

The runner needs to reach the system under test from wherever the job runs, and credentials come from the environment rather than from the project file. Point it at staging.

A gate is only as strong as the reads behind it. If verification is OBSERVATIONAL, the gate is checking that your agent did some things, not that the work happened. The run says so; CI will not.