GitHub Action
Action reference
Inputs and outputs of the Agentiqa composite GitHub Action, generated from action.yml.
Release gates for your app and its AI agents: run your saved Agentiqa test plans against your live app, with results, videos and run links in your workflow.
Public reference: agentiqa/qa-action@v1. See the GitHub Action guide for setup and examples, and CI Integration for the exit-code contract and JSON envelope.
Inputs
| Input | Required | Default | Description |
|---|---|---|---|
service-key | yes | — | Project-scoped Agentiqa CLI service key (sk_...). Required. Mint one from the Agentiqa web app or desktop app (Project Settings -> CLI Service Keys -> Create Key) or via /api/cli-quickstart-key. Pass it from a repository secret; never inline. |
api-url | no | — | Override the Agentiqa control-plane API URL (AGENTIQA_API_URL). Leave empty to use production (https://agentiqa.com), or set the URL of your own Agentiqa control plane. |
engine-url | no | — | Optional hosted-engine URL override; only meaningful with runtime: cloud. Leave empty for the default Agentiqa cloud engine (https://engine.agentiqa.com), or set the URL of your own hosted engine. |
plan-id | no | — | Run a single test plan by id (tplan_...). Overrides label-ids when set. |
label-ids | no | — | Comma-separated label ids; runs all plans tagged with any of them. Ignored when plan-id is set. |
mode | no | sequential | Execution order for the selected plans: sequential | parallel. |
cli-version | no | latest | Version of the Agentiqa CLI to run: an npm dist-tag (latest, staging) or an exact semver (e.g. 1.4.2). Default latest. |
artifacts-dir | no | agentiqa-artifacts | Directory (relative to the workspace) for run artifacts and the JSON result envelope. |
fail-on | no | plan-failure | Exit-code gating policy. One of: never - never fail the job on the run outcome (report-only; read outputs downstream). plan-failure - (default) fail when a plan failed (exit 1), on a config/usage error (exit 2 — permanent, must fail loudly), OR when a plan needs review (outcome=needs-review: no step failed, but some step needs a person to look at it before the run counts as passed — never a pass). Only retryable infra errors (exit 3) are swallowed, surfacing as outcome=infra-error for a digest/reporter to handle. Exit 3 also covers a NO-VERDICT batch — one whose only non-passing plans could not reach a verdict (a persistent engine disconnect, or the blocked cascade of one) — so a transient WS drop no longer reads as a red plan-failure. Read the outcome step output to gate more strictly (fail-on: any). any - fail on any nonzero exit. Use for release gates. |
node-version | no | 22 | Node.js version to set up on the runner (18+). |
upload-artifacts | no | true | Upload the artifacts directory (screenshots/video/result JSON) as a build artifact. |
artifact-name | no | — | Name for the uploaded artifact. Defaults to agentiqa-artifacts-<run_id>-<attempt> when empty. |
share-links | no | false | DEPRECATED no-op, accepted so existing workflows keep working. Public share links were retired 2026-07 in favor of org-member team access: the step summary's Details column always links a cloud run's detail page, and whoever opens it needs an Agentiqa login in the run owner's organization. |
retention-days | no | 14 | Retention period (in days) for the uploaded artifact. Only applies when upload-artifacts is true. Defaults to 14; the repo/org artifact-retention cap still bounds it. |
review | no | false | true to have QA Manager review this run's batch after the run (default false). The review reads what changed in your repository since the last review and what this run saw, and leaves suggestions for a person to approve in Agentiqa: Update test?, Possible bug, Add test?. It runs after a red run too, and it never changes the run outcome or whether this job fails. It needs deployed-sha and a full-history checkout of your app's repository earlier in the job (actions/checkout with fetch-depth: 0), and the job's permissions should list both contents: read and pull-requests: read (a permissions block sets every scope it does not list to none, and the checkout needs contents: read). It runs on Agentiqa's managed model access, with the same service key. |
deployed-sha | no | — | With review: true (required): the commit of your app that this run tested, i.e. the one deployed at the URL the plans ran against. A full or short sha, or a tag, present in the checkout. Not necessarily github.sha: a scheduled workflow runs on the tip of the default branch, which may not be what is deployed. |
review-since | no | — | With review: true: the commit to start from for any plan that has no starting point of its own: a plan no review covered yet (every plan on the first review, and plans added later), and also a plan whose runs never reach a verdict. Without it such a plan stops the review (no_base). The review reads one set of changes for all plans, from the oldest starting point, so while any plan starts here the whole review reads everything since this commit. Keep it recent and move it forward, for example your latest release tag, not a fixed old one. A full or short sha, or a tag, present in the checkout. |
review-dry-run | no | — | With review: true: true runs the review without adding anything to your Agentiqa project (the CLI's --dry-run). The job summary and the review JSON show the cards it would leave; no card, issue or review reaches your project and no starting point moves forward. Every review, dry or saved, sends one copy of the review to the Agentiqa team so they can check the cards with you (a saved review sends it after its writes): the cards, the summary, and a trace of how the review reached them (changed file paths, commit subjects, pull request titles, how plans were linked to files, the AI model's reasoning, the diff hunks each decision rested on; secret-looking values redacted, hunks capped). It holds no whole files or prompts; like a saved card, it can quote the short text cited as evidence: a changed line, or a sentence from a commit message, pull request description or code comment. Only the Agentiqa team reads it, it does not appear in your project, and it is deleted after 30 days. Use true for the first nights, then set it to false. false (or empty, the default) saves, except with review-only: true, which saves only with false written out. Any other value, such as a quoted 'True', is a dry run too, and the setup check flags it. |
review-trace-hunks | no | false | Accepted for compatibility; changes nothing (the CLI's --trace-hunks). Every copy of a review carries the diff hunks each decision of the review rested on: the changed lines as the AI model read them, or the one commit's change a check compared, for the files and commits each card, possible bug or decision cites. Each hunk is stored once, secret-looking values are redacted, and the lines and hunks are capped. They go only into the copy for the Agentiqa team (deleted after 30 days), never into your project, the job summary or the review JSON. Any other value than true or false is ignored with a warning. |
review-timeout-minutes | no | 40 | With review: true: the most minutes the review may take (default 40; a review usually takes a few, and the CLI is given 2 minutes less so it finishes on its own first). A review still running then is stopped: the step warns, review-exit-code is 124, and the upload and the gate run as usual. Keep it below the time the job has left after its longest run: a job that reaches its own timeout-minutes is cancelled, and its gate never runs. A whole number of minutes, 1 or more. |
review-only | no | false | true to check the review setup without running any test plan, for a run started by hand before the first night (workflow_dispatch). The job summary starts with one line per prerequisite, ok or missing, and the workflow line that fixes each missing one. Then the review runs on an earlier batch (review-batch) as a dry run: nothing is added to your project unless review-dry-run is false, written out. A nightly job that runs no plan of its own and reviews the plans' batch (review-batch empty: the latest finished one with a run) sets review-dry-run: false once its review goes live, and then saves its cards like any review. Like every review, it sends one copy of the review, with its trace, to the Agentiqa team (see review-dry-run); the copy is deleted after 30 days. Pass the same inputs as the nightly. The job fails when a line is missing or the review does not finish. |
review-batch | no | — | With review-only: true: the batch to review (batch_...). Leave empty for the project's latest finished batch that holds a run: a newer batch that finished with no run (a night whose plans could not start) is skipped, and the setup check names it. |
Outputs
| Output | Description |
|---|---|
outcome | Run outcome bucket: passed | plan-failure | needs-review | config-error | infra-error. needs-review: no plan failed, and at least one plan has steps that need a person's review (CLI exit 3, envelope outcome needs-review) — not a pass, and not an infra error. Note: exit 0 with zero executed plans buckets as config-error (a run that tests nothing is not a pass). |
json-path | Path to the captured JSON result envelope (schemaVersion:1). Empty if the run was not attempted. |
exit-code | Raw CLI process exit code (0 pass / 1 plan failure / 2 usage-config / 3 infra). |
plans-total | Total plans reported in the JSON envelope (empty if no envelope). |
plans-passed | Number of plans with outcome=passed. |
plans-failed | Number of plans with outcome != passed. |
artifact-name | Resolved artifact name used for the upload. |
cli-resolved-version | The Agentiqa CLI version actually executed, resolved at run time from agentiqa --version (e.g. 1.1.32). Makes verdict drift across publishes attributable when cli-version is a floating dist-tag (latest/staging). Empty if capture failed or the run was not attempted. |
batch-run-id | Id of the batch this run recorded (batch_...), the envelope's top-level batchRunId: what agentiqa review --batch takes. Empty when the run recorded no batch. |
review-exit-code | Exit code of the QA review: 0 finished / 2 could not run (setup, permission or account limit; retrying will not help) / 3 did not finish (transient) / 124 stopped at review-timeout-minutes. Empty when review is off. Never changes outcome or the gate. |
review-json-path | Path to the QA review JSON envelope (schemaVersion:1). Empty when the review did not run. |
setup-check | The review setup check: ok (every line ok) or missing (a line is missing or could not be checked; the job summary names it). Empty when the review step did not run. |