Skip to content

Commit

Permalink
fix xccdf, from osco (#35)
Browse files Browse the repository at this point in the history
Signed-off-by: degenaro <[email protected]>
  • Loading branch information
degenaro authored May 16, 2023
1 parent 0634a0c commit 8a2a0f4
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ The Centre for Internet Security (CIS) produce a number of cross industry standa

This [demonstration](./trestle_task_spread_sheet_to_component_definition) shows how to use the `trestle task xlsx-to-oscal-cd` functionality.

*Convert an OpenShift Compliance Operator (OSCO) results into a partial `assessment-results`*
*Convert an `xccdf` results into a partial `assessment-results`*

This [demonstration](./trestle_task_osco_result_to_oscal_ar) shows how to use the `trestle task osco_result_to_oscal_ar` functionality.
This [demonstration](./trestle_task_xccdf_result_to_oscal_ar) shows how to use the `trestle task xccdf_result_to_oscal_ar` functionality.

## Trestle as Foundation Examples

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# compliance-trestle-task-osco-to-oscal-demo
# compliance-trestle-task-xccdf-to-oscal-demo

Simple example of using trestle to facilitate transforming OSCO results to OSCAL (partial) results.
Simple example of using trestle to facilitate transforming XCCDF results to OSCAL (partial) results.

## Prerequisites

Expand All @@ -27,21 +27,21 @@ Running the demo

```
> cd
> cd git/compliance-trestle-demos/trestle_task_osco_to_oscal
> cd git/compliance-trestle-demos/trestle_task_xccdf_result_to_oscal_ar
> trestle init
> trestle task osco-result-to-oscal-ar -c ./demo-osco-to-oscal.config
> trestle task xccdf-result-to-oscal-ar -c ./demo-xccdf-result-to-oscal-ar.config
output: osco/runtime/ssg-ocp4-ds-cis-111.222.333.444-pod.oscal.json
output: xccdf/runtime/ssg-ocp4-ds-cis-111.222.333.444-pod.oscal.json
inventory: 1
observations: 125
results: {}
Task: osco-to-oscal executed successfully.
Task: xccdf-to-oscal executed successfully.
```

Viewing the result

```
> cat osco/runtime/ssg-ocp4-ds-cis-111.222.333.444-pod.oscal.json
> cat xccdf/runtime/ssg-ocp4-ds-cis-111.222.333.444-pod.oscal.json
{
"results": [
{
Expand All @@ -53,12 +53,12 @@ Viewing the result
"props": [
{
"name": "scanner_name",
"ns": "https://ibm.github.io/compliance-trestle/schemas/oscal/ar/osco",
"ns": "https://ibm.github.io/compliance-trestle/schemas/oscal/ar/xccdf",
"value": "OpenSCAP"
},
{
"name": "scanner_version",
"ns": "https://ibm.github.io/compliance-trestle/schemas/oscal/ar/osco",
"ns": "https://ibm.github.io/compliance-trestle/schemas/oscal/ar/xccdf",
"value": "1.3.3"
},
...
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[task.xccdf-result-to-oscal-ar]

input-dir = xccdf/input
output-dir = xccdf/runtime
output-overwrite = true

0 comments on commit 8a2a0f4

Please sign in to comment.