GitHub Action reference
Inputs, outputs, secrets, variables and permissions of the open-source Crysk GitHub Action.
The action is cryskai/crysk@v0. npx -y crysk setup --ci writes a workflow that already uses it; you only need this page to change something.
Inputs
Section titled “Inputs”All inputs are optional. Set them under with: in the workflow.
| Input | Default | What it does |
|---|---|---|
github-token |
${{ github.token }} |
Token used for pull request comments and the GitHub API. The scaffolded workflow passes secrets.GITHUB_TOKEN. |
crysk-secrets |
empty | The only way to pass credentials: NAME=value lines, one per CRYSK_* secret. Values are masked. See Secrets. |
models |
empty | The models per role, as JSON. Pass ${{ vars.CRYSK_MODELS }}. Empty: every role runs the default Claude model. A malformed value stops the run with CRYSK-CONFIG-INVALID. |
credentials |
empty | Which Claude credential to use and in what order, as JSON, for example {"claude": ["subscription", "api_key"]}. Pass ${{ vars.CRYSK_CREDENTIALS }}. Empty: the subscription first. |
profile |
empty | The model set every role falls back to: claude or openai. Pass ${{ vars.CRYSK_PROFILE }}. Empty: claude. models still wins role by role. |
model |
empty | One model for every step except the materiality judge. It overrides models, takes no effort and has no fallbacks. Prefer models. |
pr-number |
the triggering event | Pull request to review. |
max-changed-lines |
see below | Skips the review when the diff has more changed lines. 0 turns the limit off. |
max-changed-files |
see below | Skips the review when the diff has more changed files. 0 turns the limit off. |
mode |
gate |
gate: the crysk check fails on blocking findings or on a skipped review. advisory: the check is always green for a finished review. |
post |
true |
Publishes findings as inline comments and a review on the pull request. |
step-summary |
true |
Writes a Markdown summary to the job summary. |
force |
false |
Bypasses the size limits and the re-review policy for this run. The /crysk review comment sets it by itself. |
full |
false |
On a re-review, reviews the whole pull request instead of only the commits since the last review. The /crysk review --full comment sets it by itself. |
Size limits when unset. Crysk uses max_changed_lines / max_changed_files from .crysk/config.json if they exist. Otherwise a Claude subscription route has no limit, and a pay-per-token route (Claude API key or an OpenCode API key) uses 4000 lines and 50 files.
Removed inputs. anthropic-api-key, claude-token, routing and opencode-auth stop the run with CRYSK-INPUT-REMOVED when a workflow still sets them. Use crysk-secrets and models instead; see error codes. scout and budget-usd are ignored with a warning.
Outputs
Section titled “Outputs”Read them from the step id, for example steps.<id>.outputs.status.
| Output | Value |
|---|---|
status |
reviewed, skipped-size, skipped-budget, skipped-excluded or error. Empty when another review of the same pull request was running or every reviewer failed. |
findings-count |
Verified findings. |
blocking-count |
Findings that block the merge. |
advisory-count |
Findings that do not block. |
run-dir |
Path of the run directory with report.md and findings.json. |
cost-usd-est |
Always empty. |
Secrets
Section titled “Secrets”Pass each secret on its own line in crysk-secrets, named explicitly. Never pass the whole secrets context.
| Secret | What it is |
|---|---|
CRYSK_CLAUDE_OAUTH_TOKEN |
Long-lived token for your Claude plan, from claude setup-token. |
CRYSK_CLAUDE_API_KEY |
Claude API key, billed per token. |
CRYSK_OPENCODE_OPENAI_OAUTH |
A ChatGPT login. It is not renewed here and stops working when it expires: for a ChatGPT plan use the Crysk GitHub App. |
CRYSK_OPENCODE_<PROVIDER>_API_KEY |
API key of another OpenCode provider. <PROVIDER> is the provider id in uppercase, with - and . as _. |
A secret the repository does not have counts as absent. A run with no CRYSK_* credential stops with CRYSK-CRED-MISSING. See Claude plan, OpenAI and other providers.
Repository variables
Section titled “Repository variables”| Variable | Used for |
|---|---|
CRYSK_MODELS |
The models input. |
CRYSK_CREDENTIALS |
The credentials input. |
CRYSK_PROFILE |
The profile input. |
CRYSK_OPENCODE_PROVIDERS |
JSON array of the OpenCode providers whose API keys to forward, for example ["DEEPSEEK"]. At most 5. |
Permissions
Section titled “Permissions”The scaffolded workflow sets:
permissions: actions: read contents: read pull-requests: write issues: write statuses: write checks: write| Permission | Why |
|---|---|
pull-requests: write |
Inline comments, the review and the summary. |
issues: write |
Replies on review threads and the comment-command reactions. |
statuses: write |
The crysk check. |
checks: write |
The record of review attempts. |
actions: read |
Lists past runs of this workflow to count attempts. |
contents: read |
Checkout. |
Checkout depth
Section titled “Checkout depth”Keep fetch-depth: 0 on actions/checkout. Crysk computes the pull request diff and commit history from the full history. A shallow clone does not fail loudly: reviews silently miss context.
Run directory artifact
Section titled “Run directory artifact”After each review, the action uploads the run directory as the artifact crysk-run-<pr>-<head_sha>, kept 7 days. It holds the reviewed diff, report.md and findings.json. Download it with:
gh run download <run-id> -n crysk-run-<pr>-<head_sha> -D crysk-runOn a public repository anyone can download workflow artifacts. No artifact is uploaded when the review was skipped or produced no run directory.