Skip to content

Skip needed_rules controls in rule-identifiers reference validation#541

Open
Arden97 wants to merge 1 commit intoRHSecurityCompliance:mainfrom
Arden97:ignore_needed_rules_refs
Open

Skip needed_rules controls in rule-identifiers reference validation#541
Arden97 wants to merge 1 commit intoRHSecurityCompliance:mainfrom
Arden97:ignore_needed_rules_refs

Conversation

@Arden97
Copy link
Contributor

@Arden97 Arden97 commented Feb 13, 2026

Description:

  • Modified the static-checks rule-identifiers test to exclude rules tagged with the special needed_rules STIG control
    identifier from reference validation. The test now:
    • Collects and stores STIG ID text values during datastream parsing in a new rule_stigid_text dictionary
    • Captures both the reference href and text content for all rule references
    • Filters out rules with stigid_text == needed_rules before validating that rules contain their expected policy reference URLs

Rationale:

Review hints:

  • use atex to reserve a tf machine and run static-checks/rule-identifiers test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Various RHEL 8 and RHEL 9 rules are missing stigref references

1 participant