You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- default_timestamp no longer frozen at import time; computed per call
- simulate() no longer creates the output directory
- Input iteration skips non-.json/.jsn files and subdirectories
- class_ on compliance-type prop documented with a comment
- Added aws-config task section to cli.md and compliance_posture.md
- Added test for non-json/directory skipping
Addresses degenaro's Claude review on #2334.
Signed-off-by: Ahmed Hassan <th3reality72@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
The *trestle task aws-config-result-to-oscal-ar* command transforms AWS Config compliance evaluation results into OSCAL partial results `.json` files. Each input file is the JSON shape returned by `get-compliance-details-by-config-rule` / `get-compliance-details-by-resource` (`{"EvaluationResults": [EvaluationResult, ...]}`).
1092
+
1093
+
Specify required config parameters for input and output directories. Optional `output-overwrite` controls whether existing output may be replaced. Optional `timestamp` is an ISO 8601 string that overrides the Result/Observation timestamps.
Only `.json` / `.jsn` files in `input-dir` are processed. Nested directories and other extensions are skipped. `simulate` does not create the output directory.
1113
+
1089
1114
## `trestle task tanium-result-to-oscal-ar`
1090
1115
1091
1116
The *trestle task tanium-result-to-oscal-ar* command facilitates transformation of Tanuim reports, each
Copy file name to clipboardExpand all lines: docs/tutorials/compliance_posture.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ The bad news is that a transformer to [OSCAL](https://pages.nist.gov/OSCAL) is n
38
38
39
39
However, there is plenty of good news:
40
40
41
-
- a transformer for your Cloud Service type may already exist, such as: [Tanium to OSCAL](../reference/API/trestle/tasks/tanium_result_to_oscal_ar.md), [OpenShift Compliance Operator to OSCAL](../reference/API/trestle/tasks/xccdf_result_to_oscal_ar.md)
41
+
- a transformer for your Cloud Service type may already exist, such as: [Tanium to OSCAL](../reference/API/trestle/tasks/tanium_result_to_oscal_ar.md), [OpenShift Compliance Operator to OSCAL](../reference/API/trestle/tasks/xccdf_result_to_oscal_ar.md), [AWS Config to OSCAL](../reference/API/trestle/tasks/aws_config_result_to_oscal_ar.md)
42
42
- once a transformer for a Cloud Service type has been written, it can be open-sourced/re-used
43
43
- writing a transformer is fairly easy: just a few lines of Python code using [trestle](../index.md) as a foundation
0 commit comments