Skip to content

introduce oscal cli validation and remove legacy example projects #6

introduce oscal cli validation and remove legacy example projects

introduce oscal cli validation and remove legacy example projects #6

name: Run OSCAL CLI Validation
on:
pull_request:
branches: [ main, master ] # Adjust these branch names as needed
workflow_dispatch: # Keeps the manual trigger option
jobs:
run-oscal-cli-validation:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '11'
- name: Validate XML SRC files
run: make validate-by-cli FORMAT=src-xml
# - name: Validate XML DIST files
# run: make validate-by-cli FORMAT=xml
# - name: Validate JSON files
# run: make validate-by-cli FORMAT=json
# - name: Validate YAML files
# run: make validate-by-cli FORMAT=yaml