Skip to content

Commit cda1d63

Browse files
authored
Merge pull request #517 from ansible-lockdown/devel
Jan26 release to main
2 parents 34623d3 + e53b7ac commit cda1d63

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ repos:
4343
name: Detect Secrets
4444

4545
- repo: https://github.com/gitleaks/gitleaks
46-
rev: v8.29.1
46+
rev: v8.30.0
4747
hooks:
4848
- id: gitleaks
4949
name: gitleaks
5050

5151
- repo: https://github.com/ansible-community/ansible-lint
52-
rev: v25.11.0
52+
rev: v26.1.1
5353
hooks:
5454
- id: ansible-lint
5555
name: Ansible-lint
@@ -68,7 +68,7 @@ repos:
6868
# - ansible-core>=2.10.1
6969

7070
- repo: https://github.com/adrienverge/yamllint.git
71-
rev: v1.37.1 # or higher tag
71+
rev: v1.38.0 # or higher tag
7272
hooks:
7373
- id: yamllint
7474
name: Check YAML Lint

tasks/section_4/cis_4.5.1.x.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292

9393
- name: "4.5.1.3 | AUDIT | Ensure password expiration warning days is 7 or more | capture users not matching"
9494
ansible.builtin.shell: >
95-
awk -F: '/^[^:\n\r]+:[^!*xX\n\r]/ {print $1}' /etc/shadow
95+
awk -F: '/^[^:]+:[^!*]/ && $6< {{ rhel8cis_pam_pass_warn_age }} {print $1}' /etc/shadow
9696
changed_when: false
9797
failed_when: discovered_users_warn_days.rc not in [ 0, 1 ]
9898
check_mode: false

0 commit comments

Comments
 (0)