-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat(ens): support PDF reporting #9158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ens): support PDF reporting #9158
Conversation
|
✅ Conflict Markers Resolved All conflict markers have been successfully resolved in this pull request. |
|
✅ All necessary |
🔒 Container Security ScanImage: ✅ No Vulnerabilities DetectedThe container image passed all security checks. No known CVEs were found.📋 Resources:
|
🔒 Container Security ScanImage: 📊 Vulnerability Summary
3 package(s) affected
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #9158 +/- ##
===========================================
+ Coverage 69.37% 93.05% +23.68%
===========================================
Files 89 153 +64
Lines 6138 20705 +14567
===========================================
+ Hits 4258 19268 +15010
+ Misses 1880 1437 -443
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
I’ve refactored the code with a focus on future extensibility. Summary of Changes1. Centralized Type SystemFile:
Result: Adding a new compliance framework now only requires updating this one file—no more scattered string updates. 2. Updated Server ActionsFile:
3. Helper FunctionsFile:
4. Shared Component OrganizationMoved:
5. Removed Duplicate LogicFile:
6. ThreatScore Badge UpdateFile:
How to Add New Compliance PDF ReportsAdding a new framework is now straightforward: // 1. ui/lib/compliance/compliance-report-types.ts
export const COMPLIANCE_REPORT_TYPES = {
THREATSCORE: "threatscore",
ENS: "ens",
CIS: "cis", // new type
} as const;
export const COMPLIANCE_REPORT_DISPLAY_NAMES = {
...existing,
cis: "CIS Benchmark",
};
export const COMPLIANCE_REPORT_BUTTON_LABELS = {
...existing,
cis: "PDF CIS Report",
};
export const FRAMEWORK_TO_REPORT_TYPE = {
...existing,
"CIS-1.5": COMPLIANCE_REPORT_TYPES.CIS,
};That’s it—the UI automatically supports the new type. Benefits
Files TouchedCreated:
Modified:
Moved:
Please @pedrooot make a functional testing again, thanks! |
…mpliance-framework
josemazo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing layout work!
…mpliance-framework
…ce breadcrumb navigation styling
210d185
…ework' of github.com:prowler-cloud/prowler into PRWLR-8385-generate-pdf-reports-for-ens-compliance-framework
Description
This PR adds the support of PDF reporting for the ENS compliance framework.
Screen.Recording.2025-11-04.at.13.49.47.mov
Steps to review
Please add a detailed description of how to review this PR.
Checklist
API
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.