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

Fix missing OCIL text and 800-53 references #9415

Merged
merged 1 commit into from
Aug 26, 2022

Conversation

jan-cerny
Copy link
Collaborator

In #9325 we discovered that the
table-${PRODUCT}-${STIG_PROFILE}-testinfo.html is missing contents in
Check Text (OCIL Check) and 800-53 Refs columns.

However, it isn't caused by #9325, these data were empty even before,
the reasons are:

  • the template doesn't expect OCIL as a separate file, it expects
    OCIL data embedded in XCCDF as it used to be in past
  • the template used a wrong XML namespace for CCI list so the
    CCI list couldn't be parsed by the template.

This commit tries to solve these 2 problems. However, there are
offensive <sub> elements in the HTML output which need still to be
resolved on the level of ocil-unlinked.xml generator (it isn't a
problem in this template).

In ComplianceAsCode#9325 we discovered that the
`table-${PRODUCT}-${STIG_PROFILE}-testinfo.html` is missing contents in
`Check Text (OCIL Check)` and `800-53 Refs` columns.

However, it isn't caused by ComplianceAsCode#9325, these data were empty even before,
the reasons are:
- the template doesn't expect OCIL as a separate file, it expects
  OCIL data embedded in XCCDF as it used to be in past
- the template used a wrong XML namespace for CCI list so the
  CCI list couldn't be parsed by the template.

This commit tries to solve these 2 problems. However, there are
offensive `<sub>` elements in the HTML output which need still to be
resolved on the level of `ocil-unlinked.xml` generator (it isn't a
problem in this template).
@github-actions
Copy link

Start a new ephemeral environment with changes proposed in this pull request:

Fedora Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

@codeclimate
Copy link

codeclimate bot commented Aug 26, 2022

Code Climate has analyzed commit 7d58bd3 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 42.5% (0.0% change).

View more on Code Climate.

@Mab879 Mab879 self-assigned this Aug 26, 2022
@Mab879 Mab879 added this to the 0.1.64 milestone Aug 26, 2022
@Mab879 Mab879 added the Infrastructure Our content build system label Aug 26, 2022
@Mab879 Mab879 merged commit e673bd6 into ComplianceAsCode:master Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Infrastructure Our content build system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants