-
-
Notifications
You must be signed in to change notification settings - Fork 6
generating reports
Generate detailed compliance and security reports for stakeholders, auditors, or management.
ges report
ges report --format markdown
ges report --output ./reports/q2-compliance.mdges report --format html
ges report --format html --output ./reports/compliance.htmlges report --format pdf
ges report --format pdf --output ./reports/compliance.pdfPDF reports are generated natively (no external dependencies like Puppeteer or wkhtmltopkm required). The report includes styled headers, formatted tables, and page breaks.
| Flag | Description | Default |
|---|---|---|
-f, --format <format> |
Report format: markdown, html, or pdf
|
markdown |
-o, --output <path> |
Custom output file path | reports/compliance-report.<ext> |
Each report includes:
High-level compliance posture with overall score, total findings by severity, and risk assessment.
All findings grouped by category (secrets, encryption, injection, authentication, config, database) with:
- Severity level
- File path and line number
- Evidence snippet
- Suggested fix
Per-framework status showing each control and its current state:
GDPR (22 controls)
PASS ART5-001 Lawfulness
PASS ART5-002 Purpose Limitation
FAIL ART32-002 Encryption at Rest
WARN ART32-005 Session Timeout
Failed controls with their risk implications and recommended remediation priority.
Summary table of all control statuses across all installed packs.
# Make sure you have fresh audit data
ges audit
# Generate both formats
ges report --format markdown --output reports/compliance-2026-Q2.md
ges report --format html --output reports/compliance-2026-Q2.html
# Check what was generated
ls -la reports/!!! tip "Always run ges audit before ges report"
Reports use the latest audit findings. If you haven't audited recently, run `ges audit` first to get current data.
!!! example "Exercise: Generate Reports for Different Audiences"
1. Run `ges audit` on a project with some findings
2. Generate a Markdown report and read the Executive Summary section
3. Generate an HTML report and open it in a browser
4. Generate a PDF report for sharing with stakeholders
```bash
ges report -f markdown -o reports/for-developers.md
ges report -f html -o reports/for-management.html
ges report -f pdf -o reports/for-auditors.pdf
```
!!! question "Questions"
- Which format is better for sharing with a technical team?
- Which format is better for sharing with non-technical stakeholders?
- Which format would a GDPR auditor prefer?
- What information in the report would a GDPR auditor want to see?
!!! example "Exercise: Create a Compliance Timeline"
Run audits and generate reports at key milestones:
```bash
# Before any fixes
ges audit && ges report -f md -o reports/before-fixes.md
# After fixing criticals
ges audit && ges report -f md -o reports/after-criticals.md
# After fixing all highs
ges audit && ges report -f md -o reports/after-highs.md
# Final — all issues resolved
ges audit && ges report -f md -o reports/final.md
```
Compare the four reports to see how the findings count and score changed over time.