Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Benchmark detection in Automatus
The SCE checks are inserted to SCAP source data stream in a form of `extended-component` element, each SCE check as a separate `extended-component` element. We shouldn't treat these extended component as XCCDF Benchmarks. Instead, when resolving a component reference we should check if the reference really points to an XCCDF Benchmark. This fix will remove these annoying messages from automatus output: ``` INFO - The data stream contains 132 Benchmarks INFO - 0 - scap_org.open-scap_cref_ssg-rhel9-xccdf.xml INFO - 1 - scap_org.open-scap_cref_rhel9-checks-sce-timer_dnf-automatic_enabled.sh INFO - 2 - scap_org.open-scap_cref_rhel9-checks-sce-service_debug-shell_disabled.sh INFO - 3 - scap_org.open-scap_cref_rhel9-checks-sce-service_pcscd_enabled.sh ... ```
- Loading branch information