Skip to content

Update Export SRG Script#13474

Merged
jan-cerny merged 2 commits into
ComplianceAsCode:masterfrom
Mab879:update_srg_export
May 22, 2025
Merged

Update Export SRG Script#13474
jan-cerny merged 2 commits into
ComplianceAsCode:masterfrom
Mab879:update_srg_export

Conversation

@Mab879
Copy link
Copy Markdown
Member

@Mab879 Mab879 commented May 16, 2025

Description:

  • CCI comes from SRG
  • CTR SRGs are only for OCP4

Rationale:

Make the spreadsheets easier to use

@Mab879 Mab879 added this to the 0.1.77 milestone May 16, 2025
@Mab879 Mab879 added the Infrastructure Our content build system label May 16, 2025
@jan-cerny jan-cerny self-assigned this May 19, 2025
Comment thread utils/create_srg_export.py Outdated
row['SRGID'] = srg_id
if 'disa' in rule_object.references:
row['CCI'] = ','.join(rule_object.references['disa'])
if rule_srgs:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that creating the value for the CCI key could be extracted to a separate function to reduce the code complexity.

@Mab879 Mab879 force-pushed the update_srg_export branch 2 times, most recently from e68d7d1 to 8e41668 Compare May 19, 2025 16:12
@Mab879 Mab879 force-pushed the update_srg_export branch from 8e41668 to 54ad0ee Compare May 19, 2025 17:40
@qlty-cloud-legacy
Copy link
Copy Markdown

Code Climate has analyzed commit 54ad0ee 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 61.9% (0.0% change).

View more on Code Climate.

@vojtapolasek vojtapolasek modified the milestones: 0.1.77, 0.1.78 May 21, 2025
Copy link
Copy Markdown
Collaborator

@jan-cerny jan-cerny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have quickly checked the generated spreadsheet for RHEL 9.

@jan-cerny jan-cerny merged commit e0a8b95 into ComplianceAsCode:master May 22, 2025
108 checks passed
@Mab879 Mab879 deleted the update_srg_export branch May 22, 2025 15:24
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.

3 participants