Quickstart¶
Get scanning in under a minute. No config files needed.
1. Install¶
2. Scan your code¶
sentrik auto-detects your project — languages, CI platform, and applicable standards packs. No wizard, no prompts. Findings are written to out/:
findings.json— machine-readable findingsreport.md— human-readable summarynext_actions.md— prioritized action itemsscan_metrics.json— performance metrics
3. Enforce the gate¶
Exits with code 0 (pass) or 1 (fail). By default, critical and high severity findings fail the gate.
4. Scope to changed files¶
For faster CI/CD runs, scope to only changed files:
# Staged files (pre-commit)
sentrik scan --staged
# PR diff
sentrik gate --git-range "origin/main...HEAD"
5. Customize (optional)¶
Lock in your settings with a config file:
sentrik init --no-interactive # Auto-detected defaults → .sentrik/config.yaml
sentrik init # Interactive wizard → .sentrik/config.yaml
The .sentrik/ directory structure:
.sentrik/
config.yaml # Main config (commit to git)
rules/ # Custom rules (optional)
.gitignore # Ignores local/
local/ # Machine-local state (not committed)
Migrating from .guard.yaml
If you have an existing .guard.yaml, run sentrik migrate to copy it to .sentrik/config.yaml. Both formats are fully supported.
6. Enable standards packs¶
OWASP Top 10 is always enabled by default. Add more:
List available packs:
7. Start the dashboard¶
Open http://localhost:8000/dashboard for the management console.
8. Generate compliance artifacts¶
# Per-framework compliance report for auditors
sentrik compliance-report -f "OWASP Top 10"
# Public-safe trust center page (no code or file paths)
sentrik trust-center --org "Your Company"
The trust center page at out/trust-center.html shows your compliance posture without exposing any source code — safe to share with customers or embed on your website.
Next steps¶
- Configuration reference — full
.sentrik/config.yamloptions - CI/CD integration — GitHub Actions, Azure Pipelines, and GitLab CI
- Dashboard guide — full dashboard walkthrough
- Standards packs — IEC 62304, OWASP, SOC2 details