fix: update validate and evaluate to support target flag #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
pull_request: | |
types: [opened, edited, synchronize] | |
permissions: | |
contents: write | |
pull-requests: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
ref: ${{ github.head_ref }} | |
fetch-depth: 0 | |
- name: List directory contents for debugging | |
run: ls -al | |
- name: Setup Lula | |
uses: ./setup/ | |
with: | |
# renovate: datasource=github-tags depName=defenseunicorns/lula extractVersion="^v(.*)$" versioning=semver-coerced | |
version: v0.4.5 | |
- name: Lint OSCAL file | |
uses: ./lint/ | |
with: | |
oscal-target: ./test/valid-multi-component.yaml | |
- name: Validate OSCAL component-definition file | |
uses: ./validate/ | |
with: | |
component_definition: ./test/valid-multi-component.yaml | |
assessment_result: ./test/oscal-assessment-results.yaml | |
target: il4 | |
options: | |
- name: Evaluate OSCAL assessment-results file(s) | |
uses: ./evaluate/ | |
with: | |
threshold: ./test/oscal-assessment-results.yaml |