@@ -167,11 +167,19 @@ repos:
167167 hooks :
168168 - id : pip-audit
169169 args :
170- # We have to ignore this particular vulnerability in
171- # ansible-core>=2.11 as there is currently no fix. See
172- # cisagov/skeleton-packer#380 for more details.
170+ # We have to ignore this vulnerability since we need to pin
171+ # to ansible 10 for now to support our CyHy code that must
172+ # still run on Debian Buster. This vulnerability is fixed
173+ # in ansible>=12.
174+ #
175+ # This isn't a big deal since the vulnerability only impacts
176+ # users of the Keycloak modules in
177+ # ansible.community.general, and we don't use these modules.
178+ #
179+ # TODO: Remove this when it becomes possible. See
180+ # cisagov/skeleton-packer#486 for more details.
173181 - --ignore-vuln
174- - GHSA-99w6-3xph-cx78
182+ - GHSA-8ggh-xwr9-3373
175183 # Add any pip requirements files to scan
176184 - --requirement
177185 - requirements-dev.txt
@@ -183,10 +191,16 @@ repos:
183191 rev : v3.21.1
184192 hooks :
185193 - id : pyupgrade
194+ args :
195+ # Python 3.10 is currently the oldest non-EOL version of
196+ # Python, so we want to apply all rules that apply to this
197+ # version or later. See here for more details:
198+ # https://www.gyford.com/phil/writing/2025/08/26/how-to-use-pyupgrade/
199+ - --py310-plus
186200
187201 # Ansible hooks
188202 - repo : https://github.com/ansible/ansible-lint
189- rev : v25.11.0
203+ rev : v25.11.1
190204 hooks :
191205 - id : ansible-lint
192206 additional_dependencies :
@@ -202,31 +216,13 @@ repos:
202216 # hook identifies a vulnerability in ansible-core 2.16.13,
203217 # but all versions of ansible 9 have a dependency on
204218 # ~=2.16.X.
205- #
206- # It is also a good idea to go ahead and upgrade to version
207- # 10 since version 9 is going EOL at the end of November:
208- # https://endoflife.date/ansible
209219 # - ansible>=10,<11
210- # ansible-core 2.16.3 through 2.16.6 suffer from the bug
211- # discussed in ansible/ansible#82702, which breaks any
212- # symlinked files in vars, tasks, etc. for any Ansible role
213- # installed via ansible-galaxy. Hence we never want to
214- # install those versions.
215- #
216- # Note that the pip-audit pre-commit hook identifies a
217- # vulnerability in ansible-core 2.16.13. The pin of
218- # ansible-core to >=2.17 effectively also pins ansible to
219- # >=10.
220- #
221- # It is also a good idea to go ahead and upgrade to
222- # ansible-core 2.17 since security support for ansible-core
223- # 2.16 ends this month:
224- # https://docs.ansible.com/ansible/devel/reference_appendices/release_and_maintenance.html#ansible-core-support-matrix
220+ # ansible-core<2.17.7 suffers from GHSA-99w6-3xph-cx78.
225221 #
226222 # Note that any changes made to this dependency must also be
227223 # made in requirements.txt in cisagov/skeleton-packer and
228224 # requirements-test.txt in cisagov/skeleton-ansible-role.
229- - ansible-core>=2.17
225+ - ansible-core>=2.17.7
230226
231227 # Terraform hooks
232228 - repo : https://github.com/antonbabenko/pre-commit-terraform
0 commit comments