Inputs
All inputs are configured in your workflow file underwith::
anthropic-api-key
Anthropic API key (
sk-ant-...) or OAuth token (sk-ant-oat-...).Can also be set via environment variables:WARDEN_ANTHROPIC_API_KEYANTHROPIC_API_KEYCLAUDE_CODE_OAUTH_TOKEN(for OAuth)
github-token
GitHub token for API access. Defaults to the automatic
GITHUB_TOKEN.Use a GitHub App token for better review thread management:config-path
Path to
warden.toml configuration file, relative to repository root.fail-on
Minimum severity level to fail the action.Options:
off, critical, high, medium, low, infoWhen findings at or above this severity are found:- Action fails if
fail-checkis true - Review is
REQUEST_CHANGESifrequest-changesis true
off to never fail (informational mode).report-on
Minimum severity level to show annotations in code review.Options:
off, critical, high, medium, low, infoFindings below this threshold are counted but not posted as comments.
Use off to disable all review comments.max-findings
Maximum number of findings to report. Use
0 for unlimited.Higher severity findings are prioritized when limit is reached.request-changes
Whether to use
REQUEST_CHANGES review event when findings exceed fail-on threshold.When true:- Creates a blocking review that requires dismissal
- Automatically dismissed when all issues are resolved
- Requires GitHub token with reviewer permissions
fail-check
Whether to fail the check run when findings exceed
fail-on threshold.When true:- Check run status is “failure”
- Blocks PR merge if check is required
false:- Check run always passes
- Findings shown for information only
parallel
Maximum number of concurrent trigger executions.Higher values:
- Faster analysis for large changes
- Higher API usage and memory
- Slower but more conservative
- Better for rate limit management
Outputs
Access outputs in subsequent workflow steps:findings-count
Total number of findings across all triggers and severity levels.Includes all findings regardless of
report-on threshold.high-count
Number of high severity findings.Useful for tracking critical issues separately.
summary
Human-readable summary of the analysis.Example:
"Found 3 issues: 1 high, 2 medium"findings-file
Path to structured JSON findings file.Always written, even when no findings are found. Use for:
- Uploading to cloud storage (GCS, S3)
- Custom processing pipelines
- Archiving results
Findings Schema
The JSON file referenced byfindings-file has this structure:
Usage Examples
Conditional Workflows
Run different checks based on findings:Upload Findings to Cloud Storage
Custom Summary Comment
Matrix Testing
Run Warden with different configurations:Next Steps
Setup
Get started with GitHub Action setup
Configuration
Learn about advanced configuration options