Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select rules based on reference #2070

Merged
merged 3 commits into from
Jan 10, 2024
Merged

Commits on Jan 8, 2024

  1. Select rules based on reference

    This PR introduces a new option `--reference` that allows users to
    filter rules base on rule reference. This is useful to evaluate
    compliance with a particular policy requirement.
    
    This feature needs SCAP content to contain reference URI-to-title
    mapping within the `xccdf:Benchmark` element. The ComplianceAsCode
    content upstream project started to provide this mapping in the SCAP
    content recently, starting from 62513c391dc5a3fafd12741bd02565ca0e1e8db2.
    
    To support the easier experience with this feature, also a new option
    `--references` to the `oscap info` module has been added, this option
    extends the output of the command by listing all available reference
    names.
    
    Fixes: https://issues.redhat.com/browse/RHEL-1479
    jan-cerny committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    617b5bd View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2024

  1. Fix situation of missing colon in the --reference option

    Instead of a segfault we will produce an error message.
    jan-cerny committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    3bf305c View commit details
    Browse the repository at this point in the history
  2. Fix help text

    jan-cerny committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    3b9508d View commit details
    Browse the repository at this point in the history