RedHatProductSecurity / trestle-bot

A workflow automation tool for `compliance-trestle`

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sync/Validate upstream OSCAL content with filter by model type

jpower432 opened this issue · comments

Is your feature request related to a problem? Please describe.

When syncing OSCAL content from another repository users can only filter by model names. Filtering by model type would be helpful when you want to sync only a single top-level model type like (e.g. profile, component-definitions) without specifying the model names.

Describe the solution you'd like
Use glob patterns to handle model types by just specifying a path. Examples below

component-definitions/*
profiles/*
profiles/*rev5*

Solution Caveats

  • Breaking change (e.g. change in flag name)
  • It's not as easy to do input validation of the model type directory is incorrect or changes

Describe alternatives you've considered

  • Using another flag to specify model types, but seems like a less flexible option if you want different pattern per type

Additional context
Pertains to the trestlebot-sync-upstreams