feat: Add custom guidance and appendices support #475
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This PR adds support for customizable guidance and appendices content in Cloudsplaining HTML reports. Users can now provide their own HTML content files to customize the guidance and appendices sections of their reports.
Key features:
custom-guidance.html
andcustom-appendices.html
files in their working directoryHow to use this feature
Use Case 1: Custom Guidance Content
Result: Report shows your custom guidance content instead of default AWS guidance.
Use Case 2: Custom Appendices with Additional Resources
Result: Report shows custom appendices content instead of default AWS appendices
Use Case 3: Hide Sections Completely
Result: No Guidance or Appendices tabs appear in the navigation
Use Case 4: Mixed Configuration
Result: Custom guidance tab + default AWS appendices tab
Use Case 5: Default Behavior (No Changes)
# Don't create any custom files - works exactly as before cloudsplaining scan --input-file default.json --output reports/
Result: Standard AWS guidance and appendices content (existing behavior)
File Requirements
custom-guidance.html
andcustom-appendices.html
cloudsplaining scan
commandWhat gif best describes this PR or how it makes you feel?
Completion checklist
make test
,make lint
,make security-test
,make test-js
)