Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Eljakani/ward/llms.txt
Use this file to discover all available pages before exploring further.
Your First Scan
Initialize Ward
Create Ward’s configuration directory with default security rules:You’ll see output confirming the initialization:
Scan a Laravel project
Point Ward at your Laravel project directory:Ward will launch an interactive terminal UI showing real-time progress through each scan stage.
Understanding Scan Output
Ward runs through five stages:- Provider — Locates your Laravel project files
- Resolvers — Parses composer.json, .env, and config files
- Scanners — Runs security checks
- Post-Process — Deduplicates and filters findings
- Report — Generates output files
Example Findings
Here are some common issues Ward detects:Headless Mode
When no TTY is available or--output is specified, Ward runs in headless mode with styled text output:
CI Integration
Exit Codes with —fail-on
Make your CI pipeline fail when Ward finds issues above a severity threshold:--fail-on medium fails on Medium, High, and Critical.
Baseline (Suppress Known Findings)
On first run, generate a baseline of current findings:.ward-baseline.json to your repo to track acknowledged findings.
Example GitHub Actions Workflow
Report Formats
Ward generates multiple report formats automatically:ward-report.json— Machine-readable, always generatedward-report.sarif— GitHub Code Scanning integrationward-report.html— Standalone visual report with dark themeward-report.md— Text-based, great for pull requests
~/.ward/config.yaml:
Scan History
Ward automatically saves each scan to~/.ward/store/. On subsequent scans of the same project, it shows what changed:
Keyboard Shortcuts
When using the interactive TUI:| Key | Action |
|---|---|
q / Ctrl+C | Quit |
? | Toggle help |
Tab | Switch view or panel |
j / k / arrows | Navigate findings |
s | Cycle sort column (severity, category, file) |
Esc | Back to scan view |
Next Steps
Built-in Scanners
Learn about env-scanner, config-scanner, dependency-scanner, and rules-scanner
Custom Rules
Write your own security rules with YAML pattern matching
CI Integration
Complete guide for GitHub Actions, GitLab CI, and more
Configuration
Customize severity thresholds, disable scanners, and override rules