Skip to content

feat: adds support for rules in YAML format #31

feat: adds support for rules in YAML format

feat: adds support for rules in YAML format #31

Workflow file for this run

name: Evaluate component definitions
on:
pull_request:
types: [ opened, ready_for_review, reopened, synchronize ]
branches:
- main
paths:
- 'component-definitions/**'
- 'markdown/components/**'
jobs:
test:
name: Evaluate components
if: ${{ github.event.pull_request.base.repo.url == github.event.pull_request.head.repo.url }}
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Clone
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Check components
id: check-components
uses: RedHatProductSecurity/[email protected]
with:
markdown_path: "markdown/components"
oscal_model: "compdef"
check_only: true
call-autofix:
needs: [test]
if: ${{ always() && contains(needs.*.result, 'failure') }}
uses: ./.github/workflows/autofix-cd.yml
with:
branch: ${{ github.head_ref }}
secrets: inherit