Skip to content

Conversation

@vojtapolasek
Copy link
Collaborator

Description:

  • add a new method which wraps bash conditionals in braces if they contain logical operators
  • add test for this mechanism

Rationale:

Review Hints:

Run automatus tests for logind_session_timeout.

You can verify the fix by:

  1. cloning master
  2. building rhel9
  3. checking Bash remediation for logind_session_timeout rule and trying to run it on RHEL 9 system - it should be not applicable
  4. building rhel9 product from this PR and repeating the previous step
  • Use this optional section to give any relevant information which could help the reviewer to more quickly and assertively understand and test the changes.

  • Good examples are useful commands, if it is better to review all commits together or in a suggested sequence, any relevant discussion in other PRs or issues, etc.

If not wrapped, then some unexpected things can happen becaus of Bash evaluation of logical operators and their precedence.
@vojtapolasek vojtapolasek added this to the 0.1.80 milestone Jan 7, 2026
@vojtapolasek vojtapolasek added bugfix Fixes to reported bugs. CPE-AL CPE Applicability Language labels Jan 7, 2026
@Mab879 Mab879 self-assigned this Jan 7, 2026
@vojtapolasek vojtapolasek force-pushed the fix_nested_cpe_conditionals branch from 4edda7d to 9f20611 Compare January 7, 2026 16:15
@github-actions
Copy link

github-actions bot commented Jan 7, 2026

ATEX Test Results

Test artifacts have been submitted to Testing Farm.

Results: View Test Results
Workflow Run: View Workflow Details

This comment was automatically generated by the ATEX workflow.

@openshift-ci
Copy link

openshift-ci bot commented Jan 7, 2026

@vojtapolasek: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-aws-openshift-node-compliance 9f20611 link true /test e2e-aws-openshift-node-compliance

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@Mab879 Mab879 merged commit 4e3ff96 into ComplianceAsCode:master Jan 7, 2026
136 of 142 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Fixes to reported bugs. CPE-AL CPE Applicability Language

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants