Skip to content

Add My Comp component to test_comp component definition #64

Add My Comp component to test_comp component definition

Add My Comp component to test_comp component definition #64

Workflow file for this run

name: Evaluate component definitions
on:
pull_request:
branches:
- main
paths:
- 'component-definitions/**'
- 'markdown/components/**'
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
test:
name: Evaluate components
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Clone
uses: actions/checkout@v4
- name: Check components
id: check-components
uses: RedHatProductSecurity/trestle-bot/actions/[email protected]
with:
markdown_path: "markdown/components"
oscal_model: "compdef"
check_only: true
# Only autofix if the test job fails and the PR is from the same repo
call-autofix:
needs: [test]
if: |
always() && contains(needs.*.result, 'failure')
&& github.event.pull_request.base.repo.url == github.event.pull_request.head.repo.url
uses: ./.github/workflows/autofix-cd.yml
with:
branch: ${{ github.head_ref }}
secrets: inherit