This tutorial provides how to use trestlebot sync-oscal-content
sync OSCAL models to CaC content.
Currently, this command has one sub-command: cac-control
This command is to sync OSCAL Component Definition files to CaC content profile file and control files.
The CLI performs the following sync:
- Sync OSCAL component definition parameters/rules changes to CaC content profile file
- Sync OSCAL component definition parameters/rules changes to CaC content control file
-
Initialize the trestlebot workspace.
-
Pull the CaC Content repository.
-
Has an OSCAL Component Definition file, (transformed from CaC content using
sync-cac-content component-definition
cmd)
poetry run trestlebot sync-oscal-content cac-control \
--branch main \
--cac-content-root $cac-content-dir \
--committer-name test \
--committer-email test@redhat.com \
--dry-run \
--repo-path $trestlebot-workspace-dir \
--product $product-name
For more details about these options and additional flags, you can use the --help flag: `poetry run trestlebot sync-oscal-content cac-control --help' This will display a full list of available options and their descriptions.