Skip to content

oscal-cli action

Actions
Use oscal-cli to validate OSCAL content, convert OSCAL content, and perform processing of underlying Metaschema definitions
v2.1.0
Latest
Star (4)

oscal-cli-action

A GitHub Action to process, convert, and validate OSCAL content with the oscal-cli that the metaschema-framework community maintains or the original NIST version of the tool.

Usage

NOTE: This is a composite action for the GitHub Actions and you must check the code and setup a Java runtime as dependencies, or it will fail.

- name: Checkout
  uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b
  id: checkout
- name: Setup Java
  uses: actions/setup-java@c3ac5dd0ed8db40fedb61c32fbe677e6b355e94c
  with:
    distribution: temurin
    java-version: 17
  id: setup_java
- name: Validate SSP schema and constraints
  # Follow best practice, use version based on commit ID for tag associated with release.
  # For example, the v2.0.2 tag resolves to b5b0c80a1a158797bea4475d13d12c494b56019b.
  # See http://github.com/oscal-club/oscal-cli-action/releases/latest for the latest.
  uses: oscal-club/oscal-cli-action@b5b0c80a1a158797bea4475d13d12c494b56019b
  with:
    args: validate workspace/path/to/ssp.xml
  id: validate_ssp
- name: Run shell command  with all setup and context from before
  run: |
    ls -lha
  id: post_setup_shell_command

oscal-cli action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Use oscal-cli to validate OSCAL content, convert OSCAL content, and perform processing of underlying Metaschema definitions
v2.1.0
Latest

oscal-cli action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.