Gate a build
rigorrun gate --project <id>Runs the project’s suite against its agent and exits non-zero if the result is under the bar. A
project with more than one agent needs --agent <name>: the gate never picks one for you.
Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
0 | The gate passed. |
1 | The agent failed, or the gate was not met. |
2 | Configuration or runtime error. Never a finding about the agent. |
3 | Inconclusive evidence, or a missing, stale, unreviewed or refused suite. |
Thresholds
Section titled “Thresholds”rigorrun gate --project <id> \ --min-success 0.95 \ --min-policy 1 \ --max-unsafe 0Defaults 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.
GitHub Action
Section titled “GitHub Action”- name: RigorRun gate uses: Konuktor/rigorrun@v0.6.1 with: project: ${{ vars.RIGORRUN_PROJECT }} version: 0.6.1 min-success: '0.95' report: rigorrun-report.html node-version: 22 env: RIGORRUN_SECRET__VENUE_DESK_TOKEN: ${{ secrets.VENUE_DESK_TOKEN }}The action always adds a Markdown summary, uploads the HTML report when one was written, and keeps the gate’s exit code.
| Input | Required | Default | Meaning |
|---|---|---|---|
project | Yes | — | Project id passed to gate --project. |
agent | No | — | Agent passed to --agent; needed when the project has several. |
version | No | 0.6.1 | Exact npm package version; never latest. |
min-success | No | Gate default (0.95) | Optional value passed to --min-success. |
report | No | rigorrun-report.html | Path passed to --report and uploaded when it exists. |
rigorrun-home | No | ${{ github.workspace }}/.rigorrun | Project store, exported as RIGORRUN_HOME. |
node-version | No | 22 | Node.js version installed by the action. |
cli | No | — | Local CLI command for action development, such as pnpm rigorrun. |
Outputs are verdict (PASS, FAIL, INCONCLUSIVE, or ERROR) and exit-code. Pass every
credential named by the project on the action step as
RIGORRUN_SECRET__<NAME>: ${{ secrets.NAME }}; the action does not print the environment.
Without the action
Section titled “Without the action”- name: Acceptance run: npx rigorrun gate --project checkout env: RIGORRUN_SECRET__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.
What a gate cannot do for you
Section titled “What a gate cannot do for you”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.