Skip to content

Commit

Permalink
chore(oscal): update oscal for validation
Browse files Browse the repository at this point in the history
  • Loading branch information
brandtkeller committed Jun 30, 2024
1 parent 70cdcb8 commit 2fc9c7b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
1 change: 1 addition & 0 deletions .github/actions/save-logs/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ runs:
/tmp/debug-*.log
/tmp/uds-containerd-logs
/tmp/k3d-uds-*.log
/tmp/oscal-assessment-results.yaml
14 changes: 7 additions & 7 deletions compliance/oscal-component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ component-definition:
rel: website

import-component-definitions:
- href: 'file://../src/grafana/oscal-component.yaml'
- href: 'file://../src/istio/oscal-component.yaml'
- href: 'file://../src/loki/oscal-component.yaml'
- href: 'file://../src/neuvector/oscal-component.yaml'
- href: 'file://../src/prometheus-stack/oscal-component.yaml'
- href: 'file://../src/promtail/oscal-component.yaml'
- href: 'file://../src/velero/oscal-component.yaml'
- href: 'file://./../src/grafana/oscal-component.yaml'
- href: 'file://./../src/istio/oscal-component.yaml'
- href: 'file://./../src/loki/oscal-component.yaml'
- href: 'file://./../src/neuvector/oscal-component.yaml'
- href: 'file://./../src/prometheus-stack/oscal-component.yaml'
- href: 'file://./../src/promtail/oscal-component.yaml'
- href: 'file://./../src/velero/oscal-component.yaml'

capabilities:
- uuid: 857dcaf8-9080-4cf0-8029-8a03fcdde2df
Expand Down
11 changes: 6 additions & 5 deletions tasks/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ tasks:
- description: "Validate the package"
cmd: uds run -f src/${UDS_PKG}/tasks.yaml validate --no-progress

- task: compliance:validate
with:
oscalfile: ./compliance/oscal-component.yaml
assessment_results: ./compliance/oscal-assessment-results.yaml

- name: validate-packages
description: "Validated all packages"
# loop through each src/* package and run the validate.yaml task
Expand All @@ -37,6 +32,12 @@ tasks:
- task: create:k3d-standard-bundle
- task: deploy:k3d-standard-bundle
- task: validate-packages
- task: compliance:validate
with:
oscalfile: ./compliance/oscal-component.yaml
assessment_results: ./compliance/oscal-assessment-results.yaml
- description: copy assessment file to log location
cmd: cp ./compliance/oscal-assessment-results.yaml /tmp/oscal-assessment-results.yaml

- name: uds-core-upgrade
description: "Test an upgrade from the latest released UDS Core package to current branch"
Expand Down

0 comments on commit 2fc9c7b

Please sign in to comment.