This repository was archived by the owner on Mar 20, 2025. It is now read-only.
Automate conversion of OSCAL catalogs and mappings #13
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.
This pull request partially solves the issue #6
It adds the OSCAL-CLI v0.3.1 submodule and defines the following Taskfile tasks:
[✔]
task sub-initShorthand for
git submodule update --init --recursive[✔]
task build-oscal-cliShorthand for
mvn clean installin theOSCAL-CLIsubmodule[✔]
task oscal-cliShorthand for the
oscal-cliexecutable generated by the build of theOSCAL-CLIsubmodule.It is possible to pass any argument to the underlying command.
E.g.
task oscal-cli -- --version[✔]
task convert-catalogsShorthand for the
task oscal-cli -- catalog convert ...commands.[⚠]
task convert-mappingsShorthand for the
task oscal-cli -- mapping-collection convert ...commands.It fails due to
gov.nist.secauto.metaschema.model.common.metapath.MetapathException: Node of definition type 'relationship' has no OSCAL namespace[⚠]
task validate-catalogsShorthand for the
xmllintandtask oscal-cli -- catalog validate ...commands.[✔]
xmllint --noout --schema "$OSCAL_XML_SCHEMA_DIR/oscal_catalog_schema.xsd" "$CATALOGS_DIR/xml/cis-controls-v8_OSCAL-1.0.xml"[⚠]
task oscal-cli -- catalog validate --as xml "$CATALOGS_DIR/xml/cis-controls-v8_OSCAL-1.0.xml"It fails due to
src-resolve: Cannot resolve the name 'DateTimeDatatype' to a(n) 'type definition' component.[✔]
task oscal-cli -- catalog validate --as json "$CATALOGS_DIR/json/cis-controls-v8_OSCAL-1.0.json"[✔]
task oscal-cli -- catalog validate --as yaml "$CATALOGS_DIR/yaml/cis-controls-v8_OSCAL-1.0.yaml"[⚠]
validate-mappingsShorthand for the
xmllintandtask oscal-cli -- mapping-collection validate ...commands.xmllint --noout --schema "$OSCAL_XML_SCHEMA_DIR/oscal_mapping_schema.xsd" "$MAPPINGS_DIR/xml/CCM_CISControlsv8_Mapping.xml"xmllint --noout --schema "$OSCAL_XML_SCHEMA_DIR/oscal_mapping_schema.xsd" "$MAPPINGS_DIR/SP_800_53MOD_CISControlsv8_Mapping.xml"task oscal-cli -- mapping-collection validate --as xml "$MAPPINGS_DIR/xml/CCM_CISControlsv8_Mapping.xml"It fails due to
src-resolve: Cannot resolve the name 'DateTimeDatatype' to a(n) 'type definition' component.task oscal-cli -- mapping-collection validate --as xml "$MAPPINGS_DIR/SP_800_53MOD_CISControlsv8_Mapping.xml"It fails due to
src-resolve: Cannot resolve the name 'DateTimeDatatype' to a(n) 'type definition' component.