Here is the upstream PR: https://github.com/open-cluster-management-io/config-policy-controller/pull/61
The fix should make its way in 2.6.0 and 2.5.2.
Verified on 2.5.2-FC3 build.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Critical: Red Hat Advanced Cluster Management 2.5.2 security fixes and bug fixes), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:6507