Skip to content

chore(oscal): update oscal for validation #8

chore(oscal): update oscal for validation

chore(oscal): update oscal for validation #8

Workflow file for this run

name: Lint OSCAL Files
on:
push:
paths:
- '**/*oscal*.yaml'
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
- name: Identify changed OSCAL files
id: find_changed_files
run: |
CHANGED_FILES=$(git diff --name-only main HEAD | grep 'oscal.*\.yaml$' | grep -v ".github*" | tr '\n' ',' | sed 's/.$//' || true)
echo "Changed OSCAL files: $CHANGED_FILES"
echo "oscal_files=$CHANGED_FILES" >> "$GITHUB_OUTPUT"
shell: bash
- name: Run lint-oscal
uses: ./.github/actions/lint-oscal
with:
OSCALFILES: ${{ steps.find_changed_files.outputs.oscal_files }}