Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

vojtapolasek
Copy link
Collaborator

Description:

  • move the (?i) extension to the very beginning of the string

Rationale:

  • this regex can be treated as invalid

Review Hints:

  • Review hints here. Replace this text. Don't use the italics format!

  • 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.

@vojtapolasek vojtapolasek added bugfix Fixes to reported bugs. Ansible Ansible remediation update. backported-into-stabilization PRs which were cherry-picked during stabilization process. labels Feb 1, 2024
@vojtapolasek vojtapolasek added this to the 0.1.72 milestone Feb 1, 2024
Copy link

github-actions bot commented Feb 1, 2024

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

rhel8 (from CTF) Environment (using Fedora as testing environment)
Open in Gitpod

Fedora Testing Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

Copy link

github-actions bot commented Feb 1, 2024

This datastream diff is auto generated by the check Compare DS/Generate Diff

Click here to see the full diff
ansible remediation for rule 'xccdf_org.ssgproject.content_rule_configure_ssh_crypto_policy' differs.
--- xccdf_org.ssgproject.content_rule_configure_ssh_crypto_policy
+++ xccdf_org.ssgproject.content_rule_configure_ssh_crypto_policy
@@ -2,7 +2,7 @@
   lineinfile:
     dest: /etc/sysconfig/sshd
     state: absent
-    regexp: ^(?i)\s*CRYPTO_POLICY.*$
+    regexp: (?i)^\s*CRYPTO_POLICY.*$
   tags:
   - CCE-80939-2
   - DISA-STIG-RHEL-08-010287

@Mab879 Mab879 self-assigned this Feb 1, 2024
@Mab879
Copy link
Member

Mab879 commented Feb 1, 2024

/packit retest-failed

@Mab879
Copy link
Member

Mab879 commented Feb 1, 2024

Automatus tests pass locally.

@Mab879 Mab879 merged commit 0b2f356 into ComplianceAsCode:stabilization-v0.1.72 Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ansible Ansible remediation update. backported-into-stabilization PRs which were cherry-picked during stabilization process. bugfix Fixes to reported bugs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants